Home
last modified time | relevance | path

Searched refs:container_type (Results 1 – 20 of 20) sorted by relevance

/oneTBB/test/conformance/
H A Dconformance_concurrent_set.cpp52 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
54 static_assert(std::is_same<typename container_type::value_type, int>::value, in test_member_types()
57 static_assert(std::is_unsigned<typename container_type::size_type>::value, in test_member_types()
59 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
67 using value_type = typename container_type::value_type; in test_member_types()
68 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
72 using allocator_type = typename container_type::allocator_type; in test_member_types()
78 static_assert(utils::is_forward_iterator<typename container_type::iterator>::value, in test_member_types()
80 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
132 using container_type = oneapi::tbb::concurrent_set<T, std::less<T>, Allocator>; typedef
[all …]
H A Dconformance_concurrent_map.cpp70 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
72 static_assert(std::is_same<typename container_type::mapped_type, int>::value, in test_member_types()
77 static_assert(std::is_unsigned<typename container_type::size_type>::value, in test_member_types()
79 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
87 using value_type = typename container_type::value_type; in test_member_types()
88 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
92 using allocator_type = typename container_type::allocator_type; in test_member_types()
98 static_assert(utils::is_forward_iterator<typename container_type::iterator>::value, in test_member_types()
100 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
104 static_assert(std::is_const<typename container_type::const_iterator::value_type>::value, in test_member_types()
[all …]
H A Dconformance_concurrent_unordered_set.cpp57 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
59 static_assert(std::is_same<typename container_type::value_type, int>::value, in test_member_types()
62 static_assert(std::is_unsigned<typename container_type::size_type>::value, in test_member_types()
64 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
67 static_assert(std::is_same<typename container_type::hasher, decltype(test_hasher)>::value, in test_member_types()
80 using value_type = typename container_type::value_type; in test_member_types()
81 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
85 using allocator_type = typename container_type::allocator_type; in test_member_types()
91 static_assert(utils::is_forward_iterator<typename container_type::iterator>::value, in test_member_types()
93 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
[all …]
H A Dconformance_concurrent_unordered_map.cpp69 using container_type = ContainerType<int, int, decltype(test_hasher), in test_member_types() typedef
72 static_assert(std::is_same<typename container_type::key_type, int>::value, in test_member_types()
74 static_assert(std::is_same<typename container_type::mapped_type, int>::value, in test_member_types()
79 static_assert(std::is_unsigned<typename container_type::size_type>::value, in test_member_types()
81 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
97 using value_type = typename container_type::value_type; in test_member_types()
98 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
102 using allocator_type = typename container_type::allocator_type; in test_member_types()
108 static_assert(utils::is_forward_iterator<typename container_type::iterator>::value, in test_member_types()
110 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
[all …]
H A Dconformance_concurrent_hash_map.cpp185 using container_type = ContainerType<int, int>; in test_member_types() typedef
199 using value_type = typename container_type::value_type; in test_member_types()
417 template<typename container_type, typename element_type>
419 container_type vd; in test()
426 template<typename container_type, typename element_type>
550 template <typename container_type, typename iterator_type>
551 …static container_type& construct_container(typename std::aligned_storage<sizeof(container_type)>::… in construct_container()
552 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
553 new (ptr) container_type(begin, end); in construct_container()
559 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
[all …]
H A Dconformance_concurrent_vector.cpp589 template<typename container_type, typename element_type>
591 container_type vd; in test()
650 template <typename container_type, typename iterator_type>
652 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
653 new (ptr) container_type(begin, end); in construct_container()
659 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
660 new (ptr) container_type(begin, end, a); in construct_container()
689 using vector_t = fixture_t::container_type; in TestSerialGrowByWithMoveIterators()
1065 using vector_type = fixture_type::container_type; in test_ex_move_assignment_memory_failure()
1095 using vector_type = fixture_type::container_type; in test_ex_move_assignment_element_ctor_exception()
[all …]
H A Dconformance_enumerable_thread_specific.cpp588 typedef std::vector<T, oneapi::tbb::tbb_allocator<T> > container_type; typedef in parallel_vector_for_body
589 …typedef oneapi::tbb::enumerable_thread_specific< container_type, Allocator<container_type> > ets_t…
613 typedef std::vector<T, oneapi::tbb::tbb_allocator<T> > container_type; typedef
620 const container_type &v = *ri; in operator ()()
622 for (typename container_type::const_iterator vi = v.begin(); vi != v.end(); ++vi) { in operator ()()
637 typedef std::vector<T, oneapi::tbb::tbb_allocator<T> > container_type; in run_parallel_vector_tests() typedef
638 …typedef oneapi::tbb::enumerable_thread_specific< container_type, Allocator<container_type> > ets_t… in run_parallel_vector_tests()
700 …ets_type vvs( typename container_type::size_type(25), minus_one, oneapi::tbb::tbb_allocator<T>() ); in run_parallel_vector_tests()
723 typedef std::vector<T, oneapi::tbb::tbb_allocator<T> > container_type; in run_cross_type_vector_tests() typedef
732 …pedef typename oneapi::tbb::enumerable_thread_specific< container_type, Allocator<container_type>,… in run_cross_type_vector_tests()
[all …]
H A Dconformance_concurrent_queue.cpp1073 using container_type = ContainerType<int>; in test_member_types() typedef
1077 static_assert(std::is_same<typename container_type::value_type, int>::value, in test_member_types()
1080 static_assert(std::is_signed<typename container_type::difference_type>::value, in test_member_types()
1083 using value_type = typename container_type::value_type; in test_member_types()
1084 static_assert(std::is_same<typename container_type::reference, value_type&>::value, in test_member_types()
1086 static_assert(std::is_same<typename container_type::const_reference, const value_type&>::value, in test_member_types()
1088 using allocator_type = typename container_type::allocator_type; in test_member_types()
1094 static_assert(utils::is_forward_iterator<typename container_type::iterator>::value, in test_member_types()
1096 static_assert(!std::is_const<typename container_type::iterator::value_type>::value, in test_member_types()
1098 static_assert(utils::is_forward_iterator<typename container_type::const_iterator>::value, in test_member_types()
[all …]
H A Dconformance_concurrent_priority_queue.cpp176 using container_type = typename fixture_type::cpq_type; in test_steal_move_ctor() typedef
178 container_type src_copy{fixture.cpq_src}; in test_steal_move_ctor()
181 container_type dst{std::move(fixture.cpq_src)}; in test_steal_move_ctor()
553 using container_type = oneapi::tbb::concurrent_priority_queue<T, std::less<T>, Allocator>; typedef
/oneTBB/test/common/
H A Dcontainer_move_support.h653 using container_type = typename fixture_type::container_type; in test_move_ctor_single_argument() local
668 using container_type = typename fixture_type::container_type; in test_move_ctor_with_equal_allocator() local
682 using container_type = typename fixture_type::container_type; in test_move_ctor_with_unequal_allocator() local
695 using container_type = typename fixture_type::container_type; in test_move_assignment_POCMA_true_stateful_allocator() local
714 using container_type = typename fixture_type::container_type; in test_move_assignment_POCMA_true_stateless_allocator() local
729 using container_type = typename fixture_type::container_type; in test_move_assignment_POCMA_false_equal_allocator() local
747 using container_type = typename fixture_type::container_type; in test_move_assignment_POCMA_false_unequal_allocator() local
770 using container_type = typename fixture_type::container_type; in test_ex_move_ctor_unequal_allocator_memory_failure() local
784 using container_type = typename fixture_type::container_type; in test_ex_move_ctor_unequal_allocator_element_ctor_failure() local
819 using container_type = typename fixture_type::container_type; in test_constructor_with_move_iterators() local
[all …]
H A Dcontainers_common.h111 …using always_container_type = typename ContainerTraits::template container_type<int, always_propag…
112 …using never_container_type = typename ContainerTraits::template container_type<int, never_propagat…
113 …using pocma_container_type = typename ContainerTraits::template container_type<int, pocma_allocato…
114 …using pocca_container_type = typename ContainerTraits::template container_type<int, pocca_allocato…
115 …using pocs_container_type = typename ContainerTraits::template container_type<int, pocs_allocator_…
116 …using always_equal_container_type = typename ContainerTraits::template container_type<int, always_…
127container_type<NonMovableObject, pocma_allocator_non_movable_value_type>;
H A Dparallel_for_each_common.h290 using container_type = std::vector<value_type>; member
294 container_type my_vec;
H A Dconcurrent_associative_common.h1193 …using container_type = typename ContainerTraits::template container_type<allocator_data_type, allo…
1199 container_value_type value1 = Value<container_type>::make(key1);
1200 container_value_type value2 = Value<container_type>::make(key2);
1204 container_type c1(allocator);
1205 container_type c2(allocator);
/oneTBB/test/tbb/
H A Dtest_concurrent_vector.cpp68 template <typename container_type, typename iterator_type>
69 …static container_type& construct_container(typename std::aligned_storage<sizeof(container_type)>::… in construct_container()
70 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
71 new (ptr) container_type(begin, end); in construct_container()
75 template <typename container_type, typename iterator_type, typename allocator_type>
76 …static container_type& construct_container(typename std::aligned_storage<sizeof(container_type)>::… in construct_container()
77 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
78 new (ptr) container_type(begin, end, a); in construct_container()
85 using container_type = tbb::concurrent_vector<T, Allocator>; typedef
107 using vector_t = fixture_t::container_type; in TestSerialGrowByWithMoveIterators()
[all …]
H A Dtest_concurrent_hash_map.cpp473 template <typename container_type, typename iterator_type>
474 …static container_type& construct_container(typename std::aligned_storage<sizeof(container_type)>::… in construct_container()
475 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
476 new (ptr) container_type(begin, end); in construct_container()
480 template <typename container_type, typename iterator_type, typename allocator_type>
481 …static container_type& construct_container(typename std::aligned_storage<sizeof(container_type)>::… in construct_container()
482 container_type* ptr = reinterpret_cast<container_type*>(&storage); in construct_container()
483 new (ptr) container_type(begin, end, a); in construct_container()
503 using container_type = tbb::concurrent_hash_map<T, T, hash_compare<T>, Allocator>; typedef
H A Dtest_concurrent_priority_queue.cpp193 …using container_type = tbb::concurrent_priority_queue<allocator_data_type, std::less<allocator_dat… in test_scoped_allocator() typedef
199 container_type c1(allocator); in test_scoped_allocator()
200 container_type c2(allocator); in test_scoped_allocator()
H A Dtest_concurrent_unordered_set.cpp51 …using container_type = tbb::concurrent_unordered_set<T, std::hash<T>, std::equal_to<T>, Allocator>; typedef
61 …using container_type = tbb::concurrent_unordered_multiset<T, std::hash<T>, std::equal_to<T>, Alloc… typedef
H A Dtest_concurrent_set.cpp45 using container_type = tbb::concurrent_set<T, std::less<T>, Allocator>; typedef
55 using container_type = tbb::concurrent_multiset<T, std::less<T>, Allocator>; typedef
H A Dtest_concurrent_map.cpp60 using container_type = tbb::concurrent_map<T, T, std::less<T>, Allocator>; typedef
70 using container_type = tbb::concurrent_multimap<T, T, std::less<T>, Allocator>; typedef
H A Dtest_concurrent_unordered_map.cpp50 …using container_type = tbb::concurrent_unordered_map<T, T, std::hash<T>, std::equal_to<T>, Allocat… typedef
60 …using container_type = tbb::concurrent_unordered_multimap<T, T, std::hash<T>, std::equal_to<T>, Al… typedef