Lines Matching refs:T

66 template <typename T, typename Allocator, ets_key_usage_type ETS_key_type>
352 template<typename C, typename T, typename U>
353 friend bool operator==( const enumerable_thread_specific_iterator<C, T>& i,
356 template<typename C, typename T, typename U>
357 friend bool operator<( const enumerable_thread_specific_iterator<C,T>& i,
360 template<typename C, typename T, typename U>
361 friend std::ptrdiff_t operator-( const enumerable_thread_specific_iterator<C,T>& i,
453 template<typename Container, typename T, typename U>
454 bool operator==( const enumerable_thread_specific_iterator<Container, T>& i,
459 template<typename Container, typename T, typename U>
460 bool operator!=( const enumerable_thread_specific_iterator<Container,T>& i,
465 template<typename Container, typename T, typename U>
466 bool operator<( const enumerable_thread_specific_iterator<Container,T>& i,
471 template<typename Container, typename T, typename U>
472 bool operator>( const enumerable_thread_specific_iterator<Container,T>& i,
477 template<typename Container, typename T, typename U>
478 bool operator>=( const enumerable_thread_specific_iterator<Container,T>& i,
483 template<typename Container, typename T, typename U>
484 bool operator<=( const enumerable_thread_specific_iterator<Container,T>& i,
489 template<typename Container, typename T, typename U>
490 std::ptrdiff_t operator-( const enumerable_thread_specific_iterator<Container,T>& i,
498 template<typename C, typename T, typename U>
499 friend bool operator==(const segmented_iterator<C,T>& i, const segmented_iterator<C,U>& j);
501 template<typename C, typename T, typename U>
502 friend bool operator!=(const segmented_iterator<C,T>& i, const segmented_iterator<C,U>& j);
613 template<typename SegmentedContainer, typename T, typename U>
614 bool operator==( const segmented_iterator<SegmentedContainer,T>& i,
624 template<typename SegmentedContainer, typename T, typename U>
625 bool operator!=( const segmented_iterator<SegmentedContainer,T>& i,
630 template<typename T>
632 …void construct(void*where) {new(where) T();} // C++ note: the () in T() ensure zero initialization.
636 template<typename T>
638 const T exemplar;
639 void construct(void*where) {new(where) T(exemplar);}
640 construct_by_exemplar( const T& t ) : exemplar(t) {}
641 construct_by_exemplar( T&& t ) : exemplar(std::move(t)) {}
644 template<typename T, typename Finit>
647 void construct(void* where) {new(where) T(f());}
651 template<typename T, typename... P>
656 new(where) T(args...);
731 template<typename T, typename ETS> struct is_compatible_ets : std::false_type {};
732 template<typename T, typename U, typename A, ets_key_usage_type C>
733 struct is_compatible_ets< T, enumerable_thread_specific<U,A,C> > : std::is_same<T, U> {};
736 template <typename T> using has_empty_braces_operator = decltype(std::declval<T>()());
737 template <typename T> using is_callable_no_args = supports<T, has_empty_braces_operator>;
759 template <typename T, typename Allocator=cache_aligned_allocator<T>,
765 using padded_element = padded<ets_element<T>>;
771 using value_type = T;
772 using reference = T&;
773 using const_reference = const T&;
803 new(lref.value()) T(*static_cast<T*>(p));
810 new(lref.value()) T(std::move(*static_cast<T*>(p)));
830 using value_type = T;
850 callback_leaf<construct_by_default<T> >::make(/*dummy argument*/0)
856 callback_leaf<construct_by_finit<T,Finit> >::make( std::move(finit) )
860 explicit enumerable_thread_specific( const T& exemplar ) : my_construct_callback(
861 callback_leaf<construct_by_exemplar<T> >::make( exemplar )
864 explicit enumerable_thread_specific( T&& exemplar ) : my_construct_callback(
865 callback_leaf<construct_by_exemplar<T> >::make( std::move(exemplar) )
871 … && !is_compatible_ets<T, typename std::decay<P1>::type>::value
872 … && !std::is_same<T, typename std::decay<P1>::type>::value
875 …callback_leaf<construct_by_args<T,P1,P...> >::make( std::forward<P1>(arg1), std::forward<P>(args).…
894 return *(T*)ptr;
929 void internal_copy(const enumerable_thread_specific<T, A2, C2>& other) {
931 …static_assert( (is_compatible_ets<T, typename std::decay<decltype(other)>::type>::value), "is_comp…
950 void internal_move(enumerable_thread_specific<T, A2, C2>&& other) {
951 …static_assert( (is_compatible_ets<T, typename std::decay<decltype(other)>::type>::value), "is_comp…
967 enumerable_thread_specific( const enumerable_thread_specific<T, Alloc, Cachetype>& other )
979 …enumerable_thread_specific( enumerable_thread_specific<T, Alloc, Cachetype>&& other ) : my_constru…
995 …enumerable_thread_specific& operator=( const enumerable_thread_specific<T, Alloc, Cachetype>& othe…
1014 enumerable_thread_specific& operator=( enumerable_thread_specific<T, Alloc, Cachetype>&& other )
1025 T combine(CombineFunc f_combine) {
1027 ets_element<T> location;
1032 T my_result = *ci;