Home | History | Annotate | Download | only in list
      1 #include <string>
      2 #ifdef _LIBCPP_INLINE_VISIBILITY
      3 #undef _LIBCPP_INLINE_VISIBILITY
      4 #endif
      5 #define _LIBCPP_INLINE_VISIBILITY
      6 #include <list>
      7 
      8 
      9 typedef std::list<int> int_list;
     10 typedef std::list<std::string> string_list;
     11 
     12 int main()
     13 {
     14     int_list numbers_list;
     15 
     16     (numbers_list.push_back(0x12345678)); // Set break point at this line.
     17     (numbers_list.push_back(0x11223344));
     18     (numbers_list.push_back(0xBEEFFEED));
     19     (numbers_list.push_back(0x00ABBA00));
     20     (numbers_list.push_back(0x0ABCDEF0));
     21     (numbers_list.push_back(0x0CAB0CAB));
     22 
     23     numbers_list.clear();
     24 
     25     (numbers_list.push_back(1));
     26     (numbers_list.push_back(2));
     27     (numbers_list.push_back(3));
     28     (numbers_list.push_back(4));
     29 
     30     string_list text_list;
     31     (text_list.push_back(std::string("goofy")));
     32     (text_list.push_back(std::string("is")));
     33     (text_list.push_back(std::string("smart")));
     34 
     35     (text_list.push_back(std::string("!!!"))); // Set second break point at this line.
     36 
     37     return 0;
     38 }