#include #include #include #include "wrapper.h" using namespace std; int main() { int i = 10; wrapper(i).print(); //construct anonymous temporary and print it cout << "\n"; wrapper(&i).print(); cout << "\n"; wrapper("hello").print(); cout << "\n"; const char *a[] = {"moe", "larry", "curly"}; const size_t n = sizeof a / sizeof a[0]; vector v(a, a + n); wrapper >(v).print(); cout << "\n"; vector > vvi(2); //2nd func arg defaults to vector() vvi[0].push_back(10); vvi[0].push_back(20); vvi[1].push_back(30); vvi[1].push_back(40); vvi[1].push_back(50); wrapper > >(vvi).print(); cout << "\n"; return EXIT_SUCCESS; }