/haiku-buildtools/gcc/libstdc++-v3/testsuite/util/ |
H A D | testsuite_allocator.cc | 27 typedef tracker_allocator_counter counter_type; typedef in namespace:__gnu_test 29 counter_type::size_type 30 counter_type::allocationCount_ = 0; 32 counter_type::size_type 33 counter_type::deallocationCount_ = 0; 35 int counter_type::constructCount_ = 0; 36 int counter_type::destructCount_ = 0; 42 if (counter_type::get_construct_count() != expected_c 43 || counter_type::get_destruct_count() != expected_d) 46 << " construct = " << counter_type [all...] |
H A D | testsuite_counter_type.h | 27 struct counter_type struct in namespace:__gnu_test 43 counter_type() : val(0) function in struct:__gnu_test::counter_type 46 counter_type(int inval) : val(inval) function in struct:__gnu_test::counter_type 49 counter_type(const counter_type& in) : val(in.val) function in struct:__gnu_test::counter_type 52 ~counter_type() 55 counter_type& 56 operator=(const counter_type& in) 64 counter_type(counter_type [all...] |
H A D | testsuite_allocator.h | 101 typedef tracker_allocator_counter counter_type; typedef in class:__gnu_test::tracker_allocator 150 counter_type::allocate(n * sizeof(T)); 160 counter_type::construct(); 168 counter_type::destroy(); 175 counter_type::construct(); 182 counter_type::destroy(); 189 counter_type::deallocate(num * sizeof(T));
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/unordered_multiset/allocator/ |
H A D | move_assign.cc | 26 using __gnu_test::counter_type; 31 typedef propagating_allocator<counter_type, false> alloc_type; 33 typedef std::unordered_multiset<counter_type, hash, 34 std::equal_to<counter_type>, 43 counter_type::reset(); 50 VERIFY( counter_type::move_count == 1 ); 51 VERIFY( counter_type::destructor_count == 2 ); 57 typedef propagating_allocator<counter_type, true> alloc_type; 59 typedef std::unordered_multiset<counter_type, hash, 60 std::equal_to<counter_type>, [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/unordered_set/allocator/ |
H A D | move_assign.cc | 26 using __gnu_test::counter_type; 31 typedef propagating_allocator<counter_type, false> alloc_type; 33 typedef std::unordered_set<counter_type, hash, 34 std::equal_to<counter_type>, 43 counter_type::reset(); 50 VERIFY( counter_type::move_count == 1 ); 51 VERIFY( counter_type::destructor_count == 2 ); 57 typedef propagating_allocator<counter_type, true> alloc_type; 59 typedef std::unordered_set<counter_type, hash, 60 std::equal_to<counter_type>, [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/unordered_multimap/allocator/ |
H A D | move_assign.cc | 26 using __gnu_test::counter_type; 31 typedef propagating_allocator<counter_type, false> alloc_type; 33 typedef std::unordered_multimap<counter_type, counter_type, hash, 34 std::equal_to<counter_type>, 45 counter_type::reset(); 53 VERIFY( counter_type::move_assign_count == 0 ); 59 typedef propagating_allocator<counter_type, true> alloc_type; 61 typedef std::unordered_multimap<counter_type, counter_type, has [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/unordered_map/allocator/ |
H A D | move_assign.cc | 26 using __gnu_test::counter_type; 31 typedef propagating_allocator<counter_type, false> alloc_type; 33 typedef std::unordered_map<counter_type, counter_type, hash, 34 std::equal_to<counter_type>, 45 counter_type::reset(); 53 VERIFY( counter_type::move_assign_count == 0 ); 59 typedef propagating_allocator<counter_type, true> alloc_type; 61 typedef std::unordered_map<counter_type, counter_type, has [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/map/operators/ |
H A D | 2.cc | 55 using __gnu_test::counter_type; 69 std::map<counter_type, int> m4; 70 VERIFY( m4[counter_type(1)] == 0 ); 71 VERIFY( counter_type::specialize_count == 1 ); 72 VERIFY( counter_type::copy_count == 0 ); 73 VERIFY( counter_type::move_count == 1 ); 75 counter_type k(2); 76 counter_type::reset(); 79 VERIFY( counter_type::copy_count == 1 ); 80 VERIFY( counter_type [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/unordered_map/operators/ |
H A D | 2.cc | 58 using __gnu_test::counter_type; 72 std::unordered_map<counter_type, int, 74 VERIFY( m4[counter_type(1)] == 0 ); 75 VERIFY( counter_type::specialize_count == 1 ); 76 VERIFY( counter_type::copy_count == 0 ); 77 VERIFY( counter_type::move_count == 1 ); 79 counter_type k(2); 80 counter_type::reset(); 83 VERIFY( counter_type::copy_count == 1 ); 84 VERIFY( counter_type [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/23_containers/unordered_set/insert/ |
H A D | move_range.cc | 34 std::vector<counter_type> ref = { 0, 1, 2, 3, 4, 5 }; 35 typedef std::unordered_set<counter_type, counter_type_hasher> Set; 38 counter_type::reset(); 44 VERIFY( counter_type::move_count == ref.size() );
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/25_algorithms/make_heap/ |
H A D | complexity.cc | 31 using __gnu_test::counter_type; 36 std::vector<counter_type> values; 41 counter_type::reset(); 45 VERIFY( counter_type::less_compare_count <= 3.0 * nb_values );
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/25_algorithms/pop_heap/ |
H A D | complexity.cc | 34 using __gnu_test::counter_type; 39 std::vector<counter_type> values; 46 counter_type::reset(); 50 VERIFY( counter_type::less_compare_count <= 2.0 * std::log2(nb_values) );
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/25_algorithms/sort_heap/ |
H A D | complexity.cc | 33 using __gnu_test::counter_type; 38 std::vector<counter_type> values; 45 counter_type::reset(); 49 VERIFY( counter_type::less_compare_count <= 2.0 * nb_values * std::log2(nb_values) );
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/25_algorithms/push_heap/ |
H A D | complexity.cc | 34 using __gnu_test::counter_type; 39 std::vector<counter_type> values; 47 counter_type::reset(); 51 VERIFY( counter_type::less_compare_count <= std::log2(values.size()) );
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/util/performance/assoc/mem_usage/ |
H A D | erase_test.hpp | 89 typedef __gnu_test::tracker_allocator_counter counter_type; typedef 91 const size_t init_mem = counter_type::get_allocation_count() 92 - counter_type::get_deallocation_count(); 98 const size_t final_mem = counter_type::get_allocation_count() 99 - counter_type::get_deallocation_count();
|
H A D | multimap_insert_test.hpp | 109 typedef __gnu_test::tracker_allocator_counter counter_type; typedef 111 const size_t init_mem = counter_type::get_allocation_count() 112 - counter_type::get_deallocation_count(); 116 const size_t final_mem = counter_type::get_allocation_count() 117 - counter_type::get_deallocation_count(); 128 typedef __gnu_test::tracker_allocator_counter counter_type; typedef 130 const size_t init_mem = counter_type::get_allocation_count() 131 - counter_type::get_deallocation_count(); 135 const size_t final_mem = counter_type::get_allocation_count() 136 - counter_type [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/util/performance/priority_queue/mem_usage/ |
H A D | pop_test.hpp | 88 typedef __gnu_test::tracker_allocator_counter counter_type; typedef 91 const size_t init_mem = counter_type::get_allocation_count() 92 - counter_type::get_deallocation_count(); 100 const size_t final_mem = counter_type::get_allocation_count() 101 - counter_type::get_deallocation_count();
|