21 #ifndef __TBB_allocator_traits_H 22 #define __TBB_allocator_traits_H 24 #include "../tbb_stddef.h" 26 #if __TBB_ALLOCATOR_TRAITS_PRESENT 30 #if __TBB_CPP11_RVALUE_REF_PRESENT 35 #include __TBB_STD_SWAP_HEADER 42 #if __TBB_ALLOCATOR_TRAITS_PRESENT 50 #if __TBB_CPP11_RVALUE_REF_PRESENT 51 template <
typename MyAlloc,
typename OtherAlloc>
55 my_allocator =
std::move(other_allocator);
57 template <
typename MyAlloc,
typename OtherAlloc>
63 template <
typename MyAlloc,
typename OtherAlloc>
64 inline void allocator_swap(MyAlloc& my_allocator, OtherAlloc& other_allocator, traits_true_type) {
66 swap(my_allocator, other_allocator);
68 template <
typename MyAlloc,
typename OtherAlloc>
71 #if __TBB_ALLOCATOR_TRAITS_PRESENT 72 using std::allocator_traits;
74 template<
typename Alloc>
88 typedef typename allocator_type::pointer
pointer;
91 typedef typename allocator_type::size_type
size_type;
94 typedef typename Alloc::template rebind<U>::other
other;
97 #endif // __TBB_ALLOCATOR_TRAITS_PRESENT 101 template<
typename Alloc,
typename T>
103 #if __TBB_ALLOCATOR_TRAITS_PRESENT 112 #endif // __TBB_allocator_traits_H
allocator_type::difference_type difference_type
tbb::internal::false_type propagate_on_container_move_assignment
allocator_type::const_pointer const_pointer
bool_constant< true > true_type
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain ITT_FORMAT p const __itt_domain __itt_string_handle unsigned long long ITT_FORMAT lu const __itt_domain __itt_id __itt_string_handle __itt_metadata_type type
void swap(atomic< T > &lhs, atomic< T > &rhs)
allocator_type::pointer pointer
allocator_type::value_type value_type
tbb::internal::false_type propagate_on_container_swap
tbb::internal::true_type traits_true_type
void allocator_move_assignment(MyAlloc &my_allocator, OtherAlloc &other_allocator, traits_true_type)
Alloc::template rebind< U >::other other
allocator_traits< Alloc >::template rebind_alloc< T >::other type
tbb::internal::false_type propagate_on_container_copy_assignment
void move(tbb_thread &t1, tbb_thread &t2)
void allocator_swap(MyAlloc &my_allocator, OtherAlloc &other_allocator, traits_true_type)
tbb::internal::false_type traits_false_type
bool_constant< false > false_type
allocator_type::size_type size_type