Home | History | Annotate | Download | only in vector
      1 #include <string>
      2 #ifdef _LIBCPP_INLINE_VISIBILITY
      3 #undef _LIBCPP_INLINE_VISIBILITY
      4 #endif
      5 #define _LIBCPP_INLINE_VISIBILITY
      6 #include <vector>
      7 typedef std::vector<int> int_vect;
      8 typedef std::vector<std::string> string_vect;
      9 
     10 int main()
     11 {
     12     int_vect numbers;
     13     (numbers.push_back(1));  // Set break point at this line.
     14     (numbers.push_back(12));
     15     (numbers.push_back(123));
     16     (numbers.push_back(1234));
     17     (numbers.push_back(12345));
     18     (numbers.push_back(123456));
     19     (numbers.push_back(1234567));
     20 
     21     numbers.clear();
     22 
     23     (numbers.push_back(7));
     24 
     25     string_vect strings;
     26     (strings.push_back(std::string("goofy")));
     27     (strings.push_back(std::string("is")));
     28     (strings.push_back(std::string("smart")));
     29 
     30     (strings.push_back(std::string("!!!"))); // Set second break point at this line.
     31 
     32     strings.clear();
     33 
     34     return 0;
     35 }
     36