reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/IListTest.cpp
   79   List.push_back(new Node(1));
   82   List.splice(List.begin(), List, List.begin());
   82   List.splice(List.begin(), List, List.begin());
   82   List.splice(List.begin(), List, List.begin());
   82   List.splice(List.begin(), List, List.begin());
   83   EXPECT_EQ(1u, List.size());
   84   EXPECT_EQ(1, List.front().Value);
   85   EXPECT_TRUE(std::next(List.begin()) == List.end());
   85   EXPECT_TRUE(std::next(List.begin()) == List.end());
   88   List.push_back(new Node(2));
   89   List.push_back(new Node(3));
   90   List.splice(std::next(List.begin()), List, List.begin());
   90   List.splice(std::next(List.begin()), List, List.begin());
   90   List.splice(std::next(List.begin()), List, List.begin());
   90   List.splice(std::next(List.begin()), List, List.begin());
   91   EXPECT_EQ(3u, List.size());
   92   EXPECT_EQ(1, List.front().Value);
   93   EXPECT_EQ(2, std::next(List.begin())->Value);
   94   EXPECT_EQ(3, List.back().Value);