Lines Matching full:container
88 template <class Container, class ValueType = typename Container::value_type>
98 template <class Container>
99 struct ContainerDebugHelper<Container, char> {
105 template <class Container, class Key, class Value>
106 struct ContainerDebugHelper<Container, std::pair<const Key, Value> > {
118 template <class Container, ContainerType CT,
119 class Helper = ContainerDebugHelper<Container> >
121 using value_type = typename Container::value_type;
122 using iterator = typename Container::iterator;
123 using const_iterator = typename Container::const_iterator;
124 using allocator_type = typename Container::allocator_type;
129 "the container must use a test allocator");
166 static Container makeContainer(int size, allocator_type A = allocator_type()) {
167 Container C(A);
203 Container C = makeContainer(1);
217 Container C = makeContainer(1);
231 Container C = makeContainer(1);
249 // Container tests
252 Container C1 = makeContainer(3);
254 Container C2 = C1;
272 Container C1 = makeContainer(3);
274 Container C2 = std::move(C1);
288 Container C1 = makeContainer(2);
292 Container C2 = C1;
293 EXPECT_DEATH( C2.erase(it1) ); // wrong container
303 Container C1 = makeContainer(2);
307 Container C2 = C1;
311 EXPECT_DEATH( C2.erase(it1, it1_next) ); // begin from wrong container
312 EXPECT_DEATH( C2.erase(it1, it2_next) ); // end from wrong container
313 EXPECT_DEATH( C2.erase(it2, it1_next) ); // both from wrong container
320 Container C1 = makeContainer(3);
321 Container C2 = makeContainer(3);
336 Container C1 = makeContainer(3, allocator_type(1));
337 Container C2 = makeContainer(1, allocator_type(2));
338 Container C3 = makeContainer(2, allocator_type(2));