/* * given.cc */ #include #include #include using namespace std; // Give alias declarations for pair and vector>. // Declare overloading a function insert(string, vector for inserting a // string into a verctor, in a copy and a move version regarding the string. // Declare overloadings operator<< for pair and vector (beware of ADL). int main() { vector> v; // replace with alias string s; while (cin >> s) { insert(s, v); // test copy and move version! } // Print the content of the vector, with each entry on a line of its own. cout << v << endl; return 0; } // Define the overloadings of insert() // Define the overloadings of operator<<