Home | History | Annotate | Download | only in unit

Lines Matching full:vector

5 #include <vector>
71 vector<int> v1; // Empty vector of integers.
78 v1.push_back(42); // Add an integer to the vector.
85 vector<vector<int> > vect(10);
86 vector<vector<int> >::iterator it(vect.begin()), end(vect.end());
98 vector<double> v1; // Empty vector of doubles.
101 vector<double> v2; // Another empty vector of doubles.
113 v1.swap(v2); // Swap the vector's contents.
124 v2 = v1; // Assign one vector to another.
132 typedef vector<char> vec_type;
134 vec_type v1; // Empty vector of characters.
156 vector<int> v(4);
181 vector<int> v(array, array + 4);
195 vector<int> v(array, array + 6);
196 vector<int>::iterator vit;
239 vector<int> v(array1, array1 + 3);
240 vector<int>::iterator vit;
280 vector<float> vf(2.0f, 3.0f);
296 vector<int> v;
307 vector<TestStruct> va;
314 vector<int> v;
315 vector<int> const& cv = v;
337 vector<int *> v1;
338 vector<int *> v2 = v1;
339 vector<int *> v3;
346 vector<int> ref;
351 vector<vector<int> > v_v_int(1, ref);
358 vector<vector<int> >::iterator vvit(v_v_int.begin()), vvitEnd(v_v_int.end());
382 typedef vector<int, StackAllocator<int> > VectorInt;
431 //This test check that vector implementation do not over optimize
436 vector<Point> v1(1);
439 vector<PointEx> v2(v1.begin(), v1.end());
448 vector<int> v(3,1);
460 vector<int> vint(10, 0);
461 vector<int> const& crvint = vint;
495 vector<IncompleteClass> instances;
496 typedef vector<IncompleteClass>::iterator it;
529 // We use heap memory as test failure can corrupt vector internal
530 // representation making executable crash on vector destructor invocation.
533 typedef vector<int, NotSTLportAllocator<int> > V;