Lines Matching refs:c
99 …static bool equal(tbb::concurrent_vector<element_type, allocator_type > const& c, iterator begin, … in equal()
100 bool equal_sizes = (size_t)std::distance(begin, end) == c.size(); in equal()
101 return equal_sizes && std::equal(c.begin(), c.end(), begin); in equal()
194 test_grow_by_and_resize( tbb::concurrent_vector<Type, Allocator> &c ) : my_c(c) {} in test_grow_by_and_resize() argument
276 void Examine( tbb::concurrent_vector<Type, Allocator> c, const std::vector<Type> &vec ) { in Examine() argument
281 REQUIRE( c.size() == vec.size() ); in Examine()
282 for ( size_type_t i=0; i<c.size(); ++i ) { in Examine()
283 REQUIRE( utils::IsEqual()(c[i], vec[i]) ); in Examine()
285 …ault_construction_test<default_construction_present>()(test_grow_by_and_resize<Type,Allocator>(c)); in Examine()
286 c.grow_by( size_type_t(5), c[0] ); in Examine()
287 c.grow_to_at_least( c.size()+5, c.at(0) ); in Examine()
290 std::copy( c.begin(), c.begin() + 5, std::back_inserter( c2 ) ); in Examine()
292 c.grow_by( c2.begin(), c2.end() ); in Examine()
293 const vector_t& cvcr = c; in Examine()
296 REQUIRE( utils::IsEqual()(*c.cbegin(), *(c.crend()-1)) ); in Examine()
297 REQUIRE( utils::IsEqual()(*(c.cend()-1), *c.crbegin()) ); in Examine()
298 c.swap( c2 ); in Examine()
299 REQUIRE( c.size() == 5 ); in Examine()
300 CompareVectors( c, c2 ); in Examine()
301 c.swap( c2 ); in Examine()
305 Allocator a = c.get_allocator(); in Examine()