Home
last modified time | relevance | path

Searched refs:_Ptr (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__memory/
H A Dpointer_traits.h46 template <class _Ptr, bool = __has_element_type<_Ptr>::value>
49 template <class _Ptr>
50 struct __pointer_traits_element_type<_Ptr, true> {
51 typedef _LIBCPP_NODEBUG typename _Ptr::element_type type;
70 template <class _Ptr, bool = __has_difference_type<_Ptr>::value>
75 template <class _Ptr>
76 struct __pointer_traits_difference_type<_Ptr, true> {
77 typedef _LIBCPP_NODEBUG typename _Ptr::difference_type type;
109 template <class _Ptr, class = void>
112 template <class _Ptr>
[all …]
H A Dallocator_traits.h58 template <class _Tp, class _Ptr, class _Alloc, bool = __has_const_pointer<_Alloc>::value>
62 template <class _Tp, class _Ptr, class _Alloc>
63 struct __const_pointer<_Tp, _Ptr, _Alloc, false> {
64 using type = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
69 template <class _Ptr, class _Alloc, bool = __has_void_pointer<_Alloc>::value>
73 template <class _Ptr, class _Alloc>
74 struct __void_pointer<_Ptr, _Alloc, false> {
75 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<void>::other;
80 template <class _Ptr, class _Alloc, bool = __has_const_void_pointer<_Alloc>::value>
84 template <class _Ptr, class _Alloc>
[all …]
H A Dshared_ptr.h354 template <class _Ptr, class = void>
356 template <class _Ptr>
357 struct __is_deletable<_Ptr, decltype(delete std::declval<_Ptr>())> : true_type {};
359 template <class _Ptr, class = void>
361 template <class _Ptr>
362 struct __is_array_deletable<_Ptr, decltype(delete[] std::declval<_Ptr>())> : true_type {};
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dpointer_traits.h48 template <class _Ptr, bool = __has_element_type<_Ptr>::value>
51 template <class _Ptr>
52 struct __pointer_traits_element_type<_Ptr, true> {
53 using type _LIBCPP_NODEBUG = typename _Ptr::element_type;
72 template <class _Ptr, bool = __has_difference_type<_Ptr>::value>
77 template <class _Ptr>
78 struct __pointer_traits_difference_type<_Ptr, true> {
79 using type _LIBCPP_NODEBUG = typename _Ptr::difference_type;
119 template <class _Ptr, class = void>
122 template <class _Ptr>
[all …]
H A Dallocator_traits.h48 template <class _Alloc, template <class> class _Alias, class _Ptr, class _Tp, class = void>
51 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<_Tp>::other;
53 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<_Tp>;
57 template <class _Ptr, class _Alloc, class _Tp, template <class> class _Alias>
58 struct __rebind_or_alias_pointer<_Alloc, _Alias, _Ptr, _Tp, __void_t<_Alias<_Alloc> > > {
66 template <class _Tp, class _Ptr, class _Alloc>
68 typename __rebind_or_alias_pointer<_Alloc, __const_pointer_member, _Ptr, const _Tp>::type;
75 template <class _Ptr, class _Alloc>
77 typename __rebind_or_alias_pointer<_Alloc, __void_pointer_member, _Ptr, void>::type;
83 template <class _Ptr, class _Alloc>
[all …]
H A Dout_ptr.h44 using _Ptr = decltype(__smart); in out_ptr_t() local
45 if constexpr (__resettable_smart_pointer<_Ptr>) { in out_ptr_t()
50 static_assert(__resettable_smart_pointer<_Ptr> || is_constructible_v<_Smart>, in out_ptr_t()
92 using _Ptr = conditional_t<is_void_v<_Pointer>, __pointer_of_t<_Smart>, _Pointer>; in out_ptr() local
93 return std::out_ptr_t<_Smart, _Ptr, _Args&&...>(__s, std::forward<_Args>(__args)...); in out_ptr()
H A Dinout_ptr.h100 using _Ptr = conditional_t<is_void_v<_Pointer>, __pointer_of_t<_Smart>, _Pointer>; in inout_ptr() local
101 return std::inout_ptr_t<_Smart, _Ptr, _Args&&...>(__s, std::forward<_Args>(__args)...); in inout_ptr()
H A Dshared_ptr.h271 template <class _Ptr, class = void>
273 template <class _Ptr>
274 struct __is_deletable<_Ptr, decltype(delete std::declval<_Ptr>())> : true_type {};
276 template <class _Ptr, class = void>
278 template <class _Ptr>
279 struct __is_array_deletable<_Ptr, decltype(delete[] std::declval<_Ptr>())> : true_type {};
H A Dunique_ptr.h492 …template <class _Tag, class _Ptr, __enable_if_t<is_same<_Tag, __private_constructor_tag>::value, i…
493 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 explicit unique_ptr(_Tag, _Ptr __ptr, size_t _…
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dformat_arg_store.h143 template <class, class _Ptr>
144 requires(same_as<_Ptr, void*> || same_as<_Ptr, const void*> || same_as<_Ptr, nullptr_t>)
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__string/
H A Dchar_traits.h486 template <class _Ptr>
487 inline _LIBCPP_HIDE_FROM_ABI size_t __do_string_hash(_Ptr __p, _Ptr __e) {
488 typedef typename iterator_traits<_Ptr>::value_type value_type;
/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dchar_traits.h527 template <class _Ptr>
528 inline _LIBCPP_HIDE_FROM_ABI size_t __do_string_hash(_Ptr __p, _Ptr __e) {
529 typedef typename iterator_traits<_Ptr>::value_type value_type;
/freebsd/contrib/llvm-project/libcxx/include/__vector/
H A Dvector.h800 template <class _Ptr = pointer, __enable_if_t<is_pointer<_Ptr>::value, int> = 0>
802 __add_alignment_assumption(_Ptr __p) _NOEXCEPT { in __add_alignment_assumption()
809 template <class _Ptr = pointer, __enable_if_t<!is_pointer<_Ptr>::value, int> = 0>
811 __add_alignment_assumption(_Ptr __p) _NOEXCEPT { in __add_alignment_assumption()