4 typedef std::vector<int> int_vect;
5 typedef std::vector<std::string> string_vect;
8 void by_ref_and_ptr(std::vector<T> &ref, std::vector<T> *ptr) {
9 // Stop here to check by ref
16 (numbers.push_back(1)); // break here
17 (numbers.push_back(12)); // break here
18 (numbers.push_back(123));
19 (numbers.push_back(1234));
20 (numbers.push_back(12345)); // break here
21 (numbers.push_back(123456));
22 (numbers.push_back(1234567));
23 by_ref_and_ptr(numbers, &numbers);
28 (numbers.push_back(7)); // break here
31 (strings.push_back(std::string("goofy")));
32 (strings.push_back(std::string("is")));
33 (strings.push_back(std::string("smart")));
35 (strings.push_back(std::string("!!!")));
40 return 0; // break here