| /llvm-project-15.0.7/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.types/ |
| H A D | rebind.pass.cpp | 34 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 D | pointer_traits.h | 77 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 D | allocator_traits.h | 56 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 D | allocator.h | 42 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 D | rebind_alloc.pass.cpp | 31 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 D | allocator_types.deprecated_in_cxx17.verify.cpp | 36 …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 D | allocator_types.void.compile.pass.cpp | 34 static_assert((std::is_same<std::allocator<void>::rebind<int>::other,
|
| H A D | allocator_types.removed_in_cxx20.verify.cpp | 38 …typedef typename std::allocator<T>::template rebind<int>::other ARO; // expected-error 3 {{no memb… in check()
|
| H A D | allocator_types.pass.cpp | 56 …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 D | annotate-nested-name-specifier.cpp | 107 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 D | rebind.pass.cpp | 26 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 D | rebind_traits.pass.cpp | 31 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 D | PR9908.cpp | 7 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 D | forward-declaration-namespace.cpp | 121 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 D | lpad-linetable.cpp | 18 struct rebind struct in std::allocator 25 typedef typename _Alloc::template rebind<_Tp>::other _Tp_alloc_type;
|
| H A D | thunk-use-after-free.cpp | 8 template < typename > struct rebind { struct 15 typedef typename _Alloc::template rebind < _Tp >::other _Tp_alloc_type;
|
| H A D | debug-info-use-after-free.cpp | 97 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 D | alias-templates.cpp | 29 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 D | instantiate-member-template.cpp | 232 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 D | ftime-report-template-decl.cpp | 149 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 D | allocator_types.void.cxx20_allocator_void_no_members.verify.cpp | 25 std::allocator<void>::rebind<int>::other t; // expected-error-re {{no {{(type|template)}} named 're…
|
| H A D | allocator_types.void.cxx20_with_removed_members.compile.pass.cpp | 22 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 D | allocator_types.cxx2a.pass.cpp | 44 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 D | string.pass.cpp | 25 template<typename U> struct rebind { using other = NoDefaultAllocator<U>; }; struct
|
| /llvm-project-15.0.7/libcxx/src/include/ |
| H A D | sso_allocator.h | 45 struct rebind { struct
|