Home
last modified time | relevance | path

Searched refs:rebind (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.types/
H A Drebind.pass.cpp34 template <class U> using rebind = B1<U>; typedef
36 template <class U> struct rebind {typedef B1<U> other;};
51 template <class V> using rebind = D1<V, U>; typedef
53 template <class V> struct rebind {typedef D1<V, U> other;};
61 void rebind() {} in rebind() function
70 using rebind = void; typedef
79 static constexpr int rebind = 42; member
87 …static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>, A<double*> >::value), … in main()
88 …static_assert((std::is_same<std::pointer_traits<B<int> >::rebind<double>, B1<double> >::value), ""… in main()
89 …static_assert((std::is_same<std::pointer_traits<C<char, int> >::rebind<double>, C<double, int> >::… in main()
[all …]
/llvm-project-15.0.7/libcxx/include/__memory/
H A Dpointer_traits.h77 template <class _Xp> static true_type __test(typename _Xp::template rebind<_Up>* = 0);
87 typedef _LIBCPP_NODEBUG typename _Tp::template rebind<_Up> type;
89 typedef _LIBCPP_NODEBUG typename _Tp::template rebind<_Up>::other type;
97 typedef _LIBCPP_NODEBUG typename _Sp<_Tp, _Args...>::template rebind<_Up> type;
99 typedef _LIBCPP_NODEBUG typename _Sp<_Tp, _Args...>::template rebind<_Up>::other type;
117 template <class _Up> using rebind = typename __pointer_traits_rebind<pointer, _Up>::type;
119 template <class _Up> struct rebind
140 template <class _Up> using rebind = _Up*;
142 template <class _Up> struct rebind {typedef _Up* other;};
157 typedef typename pointer_traits<_From>::template rebind<_To> type;
[all …]
H A Dallocator_traits.h56 using type = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
58 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const _Tp>;
72 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<void>::other;
74 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<void>;
88 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const void>::other;
90 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const void>;
156 typename _Tp::template rebind<_Up>::other
161 using type _LIBCPP_NODEBUG = typename _Tp::template rebind<_Up>::other;
165 using type _LIBCPP_NODEBUG = typename _Alloc<_Tp, _Args...>::template rebind<_Up>::other;
H A Dallocator.h42 template <class _Up> struct _LIBCPP_DEPRECATED_IN_CXX17 rebind {typedef allocator<_Up> other;}; struct
55 template <class _Up> struct _LIBCPP_DEPRECATED_IN_CXX17 rebind {typedef allocator<_Up> other;}; struct
140 struct _LIBCPP_DEPRECATED_IN_CXX17 rebind {
229 struct _LIBCPP_DEPRECATED_IN_CXX17 rebind {
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/
H A Drebind_alloc.pass.cpp31 template <class U> struct rebind {typedef ReboundA<U> other;}; struct
42 template <class V> struct rebind {typedef ReboundB<V, U> other;}; struct
62 template <class U> struct rebind {typedef ReboundA<U> otter;}; argument
70 struct rebind { typedef void other; }; argument
77 struct rebind { struct
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/default.allocator/
H A Dallocator_types.deprecated_in_cxx17.verify.cpp36 …typedef std::allocator<char>::rebind<int>::other Rebind; // expected-warning {{'rebind<int>… in main()
43 …typedef std::allocator<char const>::rebind<int>::other Rebind; // expected-warning {{'rebin… in main()
49 …typedef std::allocator<void>::rebind<int>::other Rebind; // expected-warning {{'rebind<int>… in main()
H A Dallocator_types.void.compile.pass.cpp34 static_assert((std::is_same<std::allocator<void>::rebind<int>::other,
H A Dallocator_types.removed_in_cxx20.verify.cpp38 …typedef typename std::allocator<T>::template rebind<int>::other ARO; // expected-error 3 {{no memb… in check()
H A Dallocator_types.pass.cpp56 …static_assert((std::is_same<typename Alloc::template rebind<U>::other, std::allocator<U> >::value)… in test()
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-nested-name-specifier.cpp107 typedef typename outer_alias::inner::vector<type>::template rebind<type> type1;
108 typedef typename outer_alias::inner::vector<type>::template rebind<type>::other type2;
109 typedef class outer_alias::inner::vector<type>::template rebind<type> type3;
110 typedef class outer_alias::inner::vector<type>::template rebind<type>::other type4;
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/pointer.traits/
H A Drebind.pass.cpp26 static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>, double*>::value), ""); in main()
28 …static_assert((std::is_same<std::pointer_traits<int*>::rebind<double>::other, double*>::value), ""… in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/memory/allocator.traits/
H A Drebind_traits.pass.cpp31 template <class U> struct rebind {typedef ReboundA<U> other;}; struct
42 template <class V> struct rebind {typedef ReboundB<V, U> other;}; struct
62 template <class U> struct rebind {typedef ReboundA<U> otter;}; struct
/llvm-project-15.0.7/clang/test/SemaCXX/
H A DPR9908.cpp7 typedef typename _Tp::template rebind<_Up>::other type;
27 template <class U> struct rebind {typedef ReboundA<U> other;}; argument
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dforward-declaration-namespace.cpp121 struct rebind { typedef T_TEMP<_Tp1> other; }; argument
133 struct rebind { typedef T_TEMP_1<_Tp1> other; }; struct in nb::T_TEMP_1
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dlpad-linetable.cpp18 struct rebind struct in std::allocator
25 typedef typename _Alloc::template rebind<_Tp>::other _Tp_alloc_type;
H A Dthunk-use-after-free.cpp8 template < typename > struct rebind { struct
15 typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type;
H A Ddebug-info-use-after-free.cpp97 template < typename > struct rebind { struct
104 typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type;
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dalias-templates.cpp29 template<typename U> using rebind_thing = typename thing::template rebind<U>;
30 template<typename U> using rebind = traits<rebind_thing<U>>; typedef
46 template<typename U> using rebind = thing<U>; typedef
69 itt::rebind<bool> btr;
H A Dinstantiate-member-template.cpp232 template <class _Xp> static char __test(typename _Xp::template rebind<_Up>* = 0);
244 template <class U> struct rebind {typedef B1<U> other;}; struct
252 template <class V> struct rebind {typedef D1<V, U> other;}; argument
/llvm-project-15.0.7/clang/test/Frontend/
H A Dftime-report-template-decl.cpp149 using rebind = _Wrap_alloc; typedef
151 _Wrap_alloc<int>::rebind<int> w;
/llvm-project-15.0.7/libcxx/test/libcxx/utilities/memory/default.allocator/
H A Dallocator_types.void.cxx20_allocator_void_no_members.verify.cpp25 std::allocator<void>::rebind<int>::other t; // expected-error-re {{no {{(type|template)}} named 're…
H A Dallocator_types.void.cxx20_with_removed_members.compile.pass.cpp22 static_assert((std::is_same<std::allocator<void>::rebind<int>::other, std::allocator<int> >::value)…
/llvm-project-15.0.7/libcxx/test/libcxx/depr/depr.default.allocator/
H A Dallocator_types.cxx2a.pass.cpp44 static_assert((std::is_same<typename std::allocator<T>::template rebind<int>::other, in test()
/llvm-project-15.0.7/libcxx/test/std/input.output/string.streams/stringstream.cons/
H A Dstring.pass.cpp25 template<typename U> struct rebind { using other = NoDefaultAllocator<U>; }; struct
/llvm-project-15.0.7/libcxx/src/include/
H A Dsso_allocator.h45 struct rebind { struct

12