Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/libcxx/include/__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;
117 template <class _Ptr, class = void>
120 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> {
65 using type = typename pointer_traits<_Ptr>::template rebind<const _Tp>::other;
67 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<const _Tp>;
73 template <class _Ptr, class _Alloc, bool = __has_void_pointer<_Alloc>::value>
77 template <class _Ptr, class _Alloc>
78 struct __void_pointer<_Ptr, _Alloc, false> {
80 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<void>::other;
82 using type _LIBCPP_NODEBUG = typename pointer_traits<_Ptr>::template rebind<void>;
[all …]
H A Dout_ptr.h43 using _Ptr = decltype(__smart); in out_ptr_t() local
44 if constexpr (__resettable_smart_pointer<_Ptr>) { in out_ptr_t()
49 static_assert(__resettable_smart_pointer<_Ptr> || is_constructible_v<_Smart>, in out_ptr_t()
91 using _Ptr = conditional_t<is_void_v<_Pointer>, __pointer_of_t<_Smart>, _Pointer>; in out_ptr() local
92 return std::out_ptr_t<_Smart, _Ptr, _Args&&...>(__s, std::forward<_Args>(__args)...); in out_ptr()
H A Dinout_ptr.h99 using _Ptr = conditional_t<is_void_v<_Pointer>, __pointer_of_t<_Smart>, _Pointer>; in inout_ptr() local
100 return std::inout_ptr_t<_Smart, _Ptr, _Args&&...>(__s, std::forward<_Args>(__args)...); in inout_ptr()
H A Dshared_ptr.h381 template <class _Ptr, class = void>
383 template <class _Ptr>
384 struct __is_deletable<_Ptr, decltype(delete std::declval<_Ptr>())> : true_type {};
386 template <class _Ptr, class = void>
388 template <class _Ptr>
389 struct __is_array_deletable<_Ptr, decltype(delete[] std::declval<_Ptr>())> : true_type {};
H A Dunique_ptr.h57 template <class _Ptr>
59 static constexpr bool value = noexcept(*std::declval<_Ptr>());
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dformat_arg_store.h135 template <class, class _Ptr>
136 requires(same_as<_Ptr, void*> || same_as<_Ptr, const void*> || same_as<_Ptr, nullptr_t>)
/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dchar_traits.h533 template <class _Ptr>
534 inline _LIBCPP_HIDE_FROM_ABI size_t __do_string_hash(_Ptr __p, _Ptr __e) {
535 typedef typename iterator_traits<_Ptr>::value_type value_type;