31 lines
642 B
C++
31 lines
642 B
C++
#include <iostream>
|
|
#include "h/List.h"
|
|
#include "h/String.h"
|
|
#include "h/Faction.h"
|
|
#include "h/shared_ptr.h"
|
|
#include "h/function_like_classes.h"
|
|
#include "h/specialization.h"
|
|
|
|
int main() {
|
|
List<double> list = *new List<double>;
|
|
list.add(1.3);
|
|
list.add(1.5);
|
|
list.add(1.6);
|
|
|
|
std::cout << *list << std::endl;
|
|
std::cout << ++list << std::endl;
|
|
std::cout << ++list << std::endl;
|
|
std::cout << list << std::endl;
|
|
|
|
shared_ptr<String> ptr(new String("ptr"));
|
|
std::cout << ptr->get_c_str() << std::endl;
|
|
|
|
|
|
String str("fun_str");
|
|
|
|
// identity<int> ity()(1000);
|
|
|
|
hash<long>()(1000);
|
|
|
|
return 0;
|
|
} |