/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/inherit/ |
H A D | access3.C | 8 template <class _Alloc> 9 class __debug_alloc : public _Alloc { 14 template <class _Alloc> 15 void __debug_alloc<_Alloc>::allocate() { 16 _Alloc::allocate();
|
/openbsd-current/gnu/llvm/libcxx/include/__memory/ |
H A D | swap_allocator.h | 24 template <typename _Alloc> 25 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void __swap_allocator(_Alloc& __a1, _Alloc& __a2, true_type) 29 _NOEXCEPT_(__is_nothrow_swappable<_Alloc>::value) 36 template <typename _Alloc> 38 __swap_allocator(_Alloc&, _Alloc&, false_type) _NOEXCEPT {} 40 template <typename _Alloc> 41 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 void __swap_allocator(_Alloc& __a1, _Alloc [all...] |
H A D | allocator_traits.h | 42 template <class _Tp, class _Alloc, 43 class _RawAlloc = __libcpp_remove_reference_t<_Alloc>, 48 template <class _Tp, class _Alloc, class _RawAlloc> 49 struct __pointer<_Tp, _Alloc, _RawAlloc, false> { 55 template <class _Tp, class _Ptr, class _Alloc, 56 bool = __has_const_pointer<_Alloc>::value> 58 using type _LIBCPP_NODEBUG = typename _Alloc::const_pointer; 60 template <class _Tp, class _Ptr, class _Alloc> 61 struct __const_pointer<_Tp, _Ptr, _Alloc, false> { 71 template <class _Ptr, class _Alloc, [all...] |
H A D | uses_allocator.h | 33 template <class _Tp, class _Alloc, bool = __has_allocator_type<_Tp>::value> 36 is_convertible<_Alloc, typename _Tp::allocator_type>::value> 40 template <class _Tp, class _Alloc> 41 struct __uses_allocator<_Tp, _Alloc, false> 46 template <class _Tp, class _Alloc> 48 : public __uses_allocator<_Tp, _Alloc> 53 template <class _Tp, class _Alloc> 54 inline constexpr size_t uses_allocator_v = uses_allocator<_Tp, _Alloc>::value;
|
H A D | allocate_at_least.h | 30 template <class _Alloc> 32 allocation_result<typename allocator_traits<_Alloc>::pointer> allocate_at_least(_Alloc& __alloc, size_t __n) { 40 template <class _Alloc> 42 auto __allocate_at_least(_Alloc& __alloc, size_t __n) { 52 template <class _Alloc> 54 __allocation_result<typename allocator_traits<_Alloc>::pointer> __allocate_at_least(_Alloc& __alloc, size_t __n) {
|
H A D | allocator_destructor.h | 21 template <class _Alloc> 24 typedef _LIBCPP_NODEBUG allocator_traits<_Alloc> __alloc_traits; 29 _Alloc& __alloc_; 32 _LIBCPP_INLINE_VISIBILITY __allocator_destructor(_Alloc& __a, size_type __s)
|
H A D | allocation_guard.h | 43 template<class _Alloc> 45 using _Pointer = typename allocator_traits<_Alloc>::pointer; 46 using _Size = typename allocator_traits<_Alloc>::size_type; 53 , __ptr_(allocator_traits<_Alloc>::allocate(__alloc_, __n_)) // initialization order is important 59 allocator_traits<_Alloc>::deallocate(__alloc_, __ptr_, __n_); 76 _Alloc __alloc_;
|
H A D | uses_allocator_construction.h | 36 template <class _Type, class _Alloc, class... _Args, __enable_if_t<!__is_std_pair<_Type>, int> = 0> 38 __uses_allocator_construction_args(const _Alloc& __alloc, _Args&&... __args) noexcept { 39 if constexpr (!uses_allocator_v<_Type, _Alloc> && is_constructible_v<_Type, _Args...>) { 41 } else if constexpr (uses_allocator_v<_Type, _Alloc> && argument 42 is_constructible_v<_Type, allocator_arg_t, const _Alloc&, _Args...>) { 43 return tuple<allocator_arg_t, const _Alloc&, _Args&&...>(allocator_arg, __alloc, std::forward<_Args>(__args)...); 44 } else if constexpr (uses_allocator_v<_Type, _Alloc> && is_constructible_v<_Type, _Args..., const _Alloc&>) { argument 52 template <class _Pair, class _Alloc, class _Tuple1, class _Tuple2, __enable_if_t<__is_std_pair<_Pair>, int> = 0> 54 const _Alloc [all...] |
/openbsd-current/gnu/llvm/libcxx/include/__type_traits/ |
H A D | is_allocator.h | 24 template<typename _Alloc, typename = void, typename = void> 27 template<typename _Alloc> 28 struct __is_allocator<_Alloc, 29 __void_t<typename _Alloc::value_type>, 30 __void_t<decltype(std::declval<_Alloc&>().allocate(size_t(0)))>
|
H A D | noexcept_move_assign_container.h | 23 template <typename _Alloc, typename _Traits=allocator_traits<_Alloc> > 29 && is_nothrow_move_assignable<_Alloc>::value
|
/openbsd-current/gnu/gcc/libstdc++-v3/include/ext/ |
H A D | debug_allocator.h | 64 template<typename _Alloc> 68 typedef typename _Alloc::size_type size_type; 69 typedef typename _Alloc::difference_type difference_type; 70 typedef typename _Alloc::pointer pointer; 71 typedef typename _Alloc::const_pointer const_pointer; 72 typedef typename _Alloc::reference reference; 73 typedef typename _Alloc::const_reference const_reference; 74 typedef typename _Alloc::value_type value_type; 81 _Alloc _M_allocator;
|
H A D | rc_string_base.h | 86 template<typename _CharT, typename _Traits, typename _Alloc> 88 : protected __vstring_utility<_CharT, _Traits, _Alloc> 93 typedef _Alloc allocator_type; 95 typedef __vstring_utility<_CharT, _Traits, _Alloc> _Util_Base; 128 typedef typename _Alloc::template rebind<_Rep>::other _Rep_alloc_type; 153 _S_create(size_type, size_type, const _Alloc&); 156 _M_destroy(const _Alloc&) throw(); 159 _M_clone(const _Alloc&, size_type __res = 0); 187 mutable typename _Util_Base::template _Alloc_hider<_Alloc> _M_dataplus; 198 _M_grab(const _Alloc [all...] |
H A D | sso_string_base.h | 41 template<typename _CharT, typename _Traits, typename _Alloc> 43 : protected __vstring_utility<_CharT, _Traits, _Alloc> 49 typedef __vstring_utility<_CharT, _Traits, _Alloc> _Util_Base; 178 : _M_dataplus(_Alloc(), _M_local_data) 181 __sso_string_base(const _Alloc& __a); 185 __sso_string_base(size_type __n, _CharT __c, const _Alloc& __a); 189 const _Alloc& __a); 227 template<typename _CharT, typename _Traits, typename _Alloc> 229 __sso_string_base<_CharT, _Traits, _Alloc>:: 301 template<typename _CharT, typename _Traits, typename _Alloc> [all...] |
H A D | ropeimpl.h | 70 template <class _CharT, class _Alloc> 72 _Rope_iterator_base<_CharT, _Alloc>:: 73 _S_setbuf(_Rope_iterator_base<_CharT, _Alloc>& __x) 82 __x._M_buf_start = ((_Rope_RopeLeaf<_CharT, _Alloc>*)__leaf)->_M_data; 93 _Alloc>*)__leaf)->_M_fn; 115 template <class _CharT, class _Alloc> 117 _Rope_iterator_base<_CharT, _Alloc>:: 118 _S_setcache(_Rope_iterator_base<_CharT, _Alloc>& __x) 157 _Rope_RopeConcatenation<_CharT, _Alloc>* __c = 158 (_Rope_RopeConcatenation<_CharT, _Alloc>*)__curr_rop 1662 typedef typename _Rope_iterator::_allocator_type _Alloc; typedef [all...] |
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/ext/ |
H A D | stl_rope.h | 49 // rope<_CharT,_Alloc> is a sequence of _CharT. 237 template<class _CharT, class _Alloc=allocator<_CharT> > class rope; 238 template<class _CharT, class _Alloc> struct _Rope_RopeConcatenation; 239 template<class _CharT, class _Alloc> struct _Rope_RopeLeaf; 240 template<class _CharT, class _Alloc> struct _Rope_RopeFunction; 241 template<class _CharT, class _Alloc> struct _Rope_RopeSubstring; 242 template<class _CharT, class _Alloc> class _Rope_iterator; 243 template<class _CharT, class _Alloc> class _Rope_const_iterator; 244 template<class _CharT, class _Alloc> class _Rope_char_ref_proxy; 245 template<class _CharT, class _Alloc> clas [all...] |
/openbsd-current/gnu/lib/libstdc++/libstdc++/include/bits/ |
H A D | stl_multiset.h | 72 class _Alloc = allocator<_Key> > 75 template <class _Key, class _Compare, class _Alloc> 76 inline bool operator==(const multiset<_Key,_Compare,_Alloc>& __x, 77 const multiset<_Key,_Compare,_Alloc>& __y); 79 template <class _Key, class _Compare, class _Alloc> 80 inline bool operator<(const multiset<_Key,_Compare,_Alloc>& __x, 81 const multiset<_Key,_Compare,_Alloc>& __y); 83 template <class _Key, class _Compare, class _Alloc> 100 _Identity<value_type>, key_compare, _Alloc> _Rep_type; 103 typedef typename _Alloc [all...] |
H A D | stl_set.h | 72 class _Alloc = allocator<_Key> > 75 template <class _Key, class _Compare, class _Alloc> 76 inline bool operator==(const set<_Key,_Compare,_Alloc>& __x, 77 const set<_Key,_Compare,_Alloc>& __y); 79 template <class _Key, class _Compare, class _Alloc> 80 inline bool operator<(const set<_Key,_Compare,_Alloc>& __x, 81 const set<_Key,_Compare,_Alloc>& __y); 84 template <class _Key, class _Compare, class _Alloc> 99 _Identity<value_type>, key_compare, _Alloc> _Rep_type; 102 typedef typename _Alloc [all...] |
H A D | stl_multimap.h | 72 typename _Alloc = allocator<pair<const _Key, _Tp> > > 75 template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> 76 inline bool operator==(const multimap<_Key,_Tp,_Compare,_Alloc>& __x, 77 const multimap<_Key,_Tp,_Compare,_Alloc>& __y); 79 template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> 80 inline bool operator<(const multimap<_Key,_Tp,_Compare,_Alloc>& __x, 81 const multimap<_Key,_Tp,_Compare,_Alloc>& __y); 104 template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> 120 friend class multimap<_Key,_Tp,_Compare,_Alloc>; 132 _Select1st<value_type>, key_compare, _Alloc> _Rep_typ [all...] |
H A D | basic_string.h | 108 template<typename _CharT, typename _Traits, typename _Alloc> 115 typedef _Alloc allocator_type; 116 typedef typename _Alloc::size_type size_type; 117 typedef typename _Alloc::difference_type difference_type; 118 typedef typename _Alloc::reference reference; 119 typedef typename _Alloc::const_reference const_reference; 120 typedef typename _Alloc::pointer pointer; 121 typedef typename _Alloc::const_pointer const_pointer; 146 typedef typename _Alloc::template rebind<char>::other _Raw_bytes_alloc; 193 _M_grab(const _Alloc [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/opt/ |
H A D | noreturn-1.C | 11 template <typename _Alloc> class allocator; 15 typename _Alloc = allocator<_CharT> > 30 template<typename _CharT, typename _Traits, typename _Alloc> 32 typedef _Alloc allocator_type; 35 void _M_dispose(const _Alloc & __a) { 38 } void _M_destroy(const _Alloc &) throw(); 40 struct _Alloc_hider : _Alloc { 49 basic_string(const _CharT * __s, const _Alloc & __a = _Alloc());
|
/openbsd-current/gnu/gcc/libstdc++-v3/include/bits/ |
H A D | allocator.h | 135 template<typename _Alloc, bool = std::__is_empty<_Alloc>::__value> 137 { static void _S_do_it(_Alloc&, _Alloc&) { } }; 139 template<typename _Alloc> 140 struct __alloc_swap<_Alloc, false> 143 _S_do_it(_Alloc& __one, _Alloc& __two)
|
H A D | stl_multiset.h | 89 class _Alloc = std::allocator<_Key> > 93 typedef typename _Alloc::value_type _Alloc_value_type; 105 typedef _Alloc allocator_type; 109 typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type; 183 multiset(const multiset<_Key,_Compare,_Alloc>& __x) 193 multiset<_Key,_Compare,_Alloc>& 194 operator=(const multiset<_Key,_Compare,_Alloc>& __x) 278 swap(multiset<_Key, _Compare, _Alloc>& __x) 505 template <class _Key, class _Compare, class _Alloc> 507 operator==(const multiset<_Key, _Compare, _Alloc> [all...] |
H A D | stl_set.h | 92 class _Alloc = std::allocator<_Key> > 96 typedef typename _Alloc::value_type _Alloc_value_type; 110 typedef _Alloc allocator_type; 114 typedef typename _Alloc::template rebind<_Key>::other _Key_alloc_type; 193 set(const set<_Key,_Compare,_Alloc>& __x) 203 set<_Key,_Compare,_Alloc>& 204 operator=(const set<_Key, _Compare, _Alloc>& __x) 286 swap(set<_Key,_Compare,_Alloc>& __x) 519 template<class _Key, class _Compare, class _Alloc> 521 operator==(const set<_Key, _Compare, _Alloc> [all...] |
H A D | basic_string.h | 110 template<typename _CharT, typename _Traits, typename _Alloc> 113 typedef typename _Alloc::template rebind<_CharT>::other _CharT_alloc_type; 119 typedef _Alloc allocator_type; 157 typedef typename _Alloc::template rebind<char>::other _Raw_bytes_alloc; 220 _M_grab(const _Alloc& __alloc1, const _Alloc& __alloc2) 228 _S_create(size_type, size_type, const _Alloc&); 231 _M_dispose(const _Alloc& __a) 242 _M_destroy(const _Alloc&) throw(); 255 _M_clone(const _Alloc [all...] |
H A D | stl_multimap.h | 91 typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > > 99 typedef _Alloc allocator_type; 103 typedef typename _Alloc::value_type _Alloc_value_type; 113 friend class multimap<_Key, _Tp, _Compare, _Alloc>; 127 typedef typename _Alloc::template rebind<value_type>::other 610 template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> 612 operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, 613 const multimap<_Key, _Tp, _Compare, _Alloc>& __y) 627 template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> 629 operator<(const multimap<_Key, _Tp, _Compare, _Alloc> [all...] |