#include #include "func_template_example.hpp" #include "class_template_example.hpp" #include #include #include #include int main(int argc, char *argv[]){ std::vector a; std::srand(std::time(NULL)); for (int i = 0; i < 10; ++i){ //stick random values into a vector a.push_back(std::rand() % 15); } //output the current state of the vector std::copy(a.begin(), a.end(), std::ostream_iterator(std::cout, " ")); std::cout << std::endl; dmcgrath::pair b(2,2); dmcgrath::pair c(1,2); std::cout << std::boolalpha << (c <= b) << std::endl; //sort it dmcgrath::sort(a); //output the new state of the vector. std::copy(a.begin(), a.end(), std::ostream_iterator(std::cout, " ")); std::cout << std::endl; return 0; }