/llvm-project/libcxx/include/__memory/ |
H A D | uses_allocator_construction.h | 73 _LIBCPP_HIDE_FROM_ABI constexpr _Type __make_obj_using_allocator(const _Alloc& __alloc, _Args&&... __args); in __uses_allocator_construction_args() 79 __apply(const _Alloc& __alloc, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept { 83 [&__alloc](auto&&... __args1) { 85 __alloc, std::forward<decltype(__args1)>(__args1)...); 89 [&__alloc](auto&&... __args2) { in __uses_allocator_construction_args() 91 __alloc, std::forward<decltype(__args2)>(__args2)...); in __uses_allocator_construction_args() 97 static _LIBCPP_HIDE_FROM_ABI constexpr auto __apply(const _Alloc& __alloc) noexcept { in __uses_allocator_construction_args() argument 98 return __uses_allocator_construction_args<_Pair>::__apply(__alloc, piecewise_construct, tuple<>{}, tuple<>{}); in __uses_allocator_construction_args() 102 static _LIBCPP_HIDE_FROM_ABI constexpr auto __apply(const _Alloc& __alloc, _Up&& __u, _Vp&& __v) noexcept { 104 __alloc, 45 __uses_allocator_construction_args(const _Alloc & __alloc,_Args &&...__args) __uses_allocator_construction_args() argument 62 __uses_allocator_construction_args(const _Alloc & __alloc,piecewise_construct_t,_Tuple1 && __x,_Tuple2 && __y) __uses_allocator_construction_args() argument 80 __uses_allocator_construction_args(const _Alloc & __alloc) __uses_allocator_construction_args() argument 86 __uses_allocator_construction_args(const _Alloc & __alloc,_Up && __u,_Vp && __v) __uses_allocator_construction_args() argument 105 __uses_allocator_construction_args(const _Alloc & __alloc,const pair<_Up,_Vp> & __pair) __uses_allocator_construction_args() argument 112 __uses_allocator_construction_args(const _Alloc & __alloc,pair<_Up,_Vp> && __pair) __uses_allocator_construction_args() argument 123 __uses_allocator_construction_args(const _Alloc & __alloc,const pair<_Up,_Vp> && __pair) __uses_allocator_construction_args() argument 133 __uses_allocator_construction_args(const _Alloc & __alloc,_PairLike && __p) __uses_allocator_construction_args() argument 183 __uses_allocator_construction_args(const _Alloc & __alloc,_Type && __value) __uses_allocator_construction_args() argument 205 __make_obj_using_allocator(const _Alloc & __alloc,_Args &&...__args) __make_obj_using_allocator() argument 212 __uninitialized_construct_using_allocator(_Type * __ptr,const _Alloc & __alloc,_Args &&...__args) __uninitialized_construct_using_allocator() argument [all...] |
H A D | uninitialized_algorithms.h | 370 __allocator_destroy_multidimensional(_Alloc& __alloc, _BidirIter __first, _BidirIter __last) noexcept { in __allocator_destroy_multidimensional() 383 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_destroy_multidimensional() 392 allocator_traits<_Alloc>::destroy(__alloc, std::addressof(*__last)); in __allocator_destroy_multidimensional() 405 _LIBCPP_HIDE_FROM_ABI constexpr void __allocator_construct_at_multidimensional(_Alloc& __alloc, _Tp* __loc) { in __allocator_construct_at_multidimensional() 411 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_construct_at_multidimensional() 425 allocator_traits<_Alloc>::construct(__alloc, __loc); in __allocator_construct_at_multidimensional() 441 __allocator_construct_at_multidimensional(_Alloc& __alloc, _Tp* __loc, _Arg const& __arg) { in __allocator_construct_at_multidimensional() 451 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_construct_at_multidimensional() 464 allocator_traits<_Alloc>::construct(__alloc, __loc, __arg); in __allocator_construct_at_multidimensional() 480 __uninitialized_allocator_fill_n_multidimensional(_Alloc& __alloc, _BidirIte in __uninitialized_allocator_fill_n_multidimensional() 369 __allocator_destroy_multidimensional(_Alloc & __alloc,_BidirIter __first,_BidirIter __last) __allocator_destroy_multidimensional() argument 404 __allocator_construct_at_multidimensional(_Alloc & __alloc,_Tp * __loc) __allocator_construct_at_multidimensional() argument 440 __allocator_construct_at_multidimensional(_Alloc & __alloc,_Tp * __loc,_Arg const & __arg) __allocator_construct_at_multidimensional() argument 479 __uninitialized_allocator_fill_n_multidimensional(_Alloc & __alloc,_BidirIter __it,_Size __n,_Tp const & __value) __uninitialized_allocator_fill_n_multidimensional() argument 497 __uninitialized_allocator_value_construct_n_multidimensional(_Alloc & __alloc,_BidirIter __it,_Size __n) __uninitialized_allocator_value_construct_n_multidimensional() argument 516 __allocator_destroy(_Alloc & __alloc,_Iter __first,_Sent __last) __allocator_destroy() argument 525 _AllocatorDestroyRangeReverse(_Alloc & __alloc,_Iter & __first,_Iter & __last) _AllocatorDestroyRangeReverse() argument 544 __uninitialized_allocator_copy_impl(_Alloc & __alloc,_Iter1 __first1,_Sent1 __last1,_Iter2 __first2) __uninitialized_allocator_copy_impl() argument [all...] |
H A D | allocate_at_least.h | 25 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto __allocate_at_least(_Alloc& __alloc, size_t __n) { in __allocate_at_least() argument 26 return std::allocator_traits<_Alloc>::allocate_at_least(__alloc, __n); in __allocate_at_least() 40 __allocate_at_least(_Alloc& __alloc, size_t __n) { 41 return {__alloc.allocate(__n), __n};
|
H A D | temp_value.h | 48 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI _LIBCPP_CONSTEXPR_SINCE_CXX20 __temp_value(_Alloc& __alloc, _… in __temp_value() 49 : __a(__alloc) { in __temp_value()
|
H A D | allocation_guard.h | 52 _LIBCPP_HIDE_FROM_ABI explicit __allocation_guard(_AllocT __alloc, _Size __n) 53 : __alloc_(std::move(__alloc)), in __allocation_guard()
|
H A D | shared_ptr.h | 749 _ForOverwriteAllocator __alloc(__a); 750 return std::allocate_shared<_Tp>(__alloc); 775 _Alloc const& __alloc, size_t __count, _Tp const& __arg) 776 : __alloc_(__alloc), __count_(__count) { 780 _LIBCPP_HIDE_FROM_ABI explicit __unbounded_array_control_block(_Alloc const& __alloc, size_t __count) 781 : __alloc_(__alloc), __count_(__count) { 874 _LIBCPP_HIDE_FROM_ABI explicit __bounded_array_control_block(_Alloc const& __alloc, _Tp const& __arg) 875 : __alloc_(__alloc) { 879 _LIBCPP_HIDE_FROM_ABI explicit __bounded_array_control_block(_Alloc const& __alloc) : __alloc_(__alloc) { 313 _Alloc* __alloc = reinterpret_cast<_Alloc*>(__first); _ALIGNAS_TYPE() local [all...] |
H A D | allocator_traits.h | 291 allocate_at_least(_Ap& __alloc, size_type __n) { 292 if constexpr (requires { __alloc.allocate_at_least(__n); }) { 293 return __alloc.allocate_at_least(__n); 295 return {__alloc.allocate(__n), __n};
|
/llvm-project/libcxx/include/ |
H A D | __split_buffer |
|
H A D | vector |
|
H A D | deque | 619 __alloc_traits::deallocate(__alloc(), *__i, __block_size); 712 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __alloc_; } 713 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __alloc_; } 756 return std::min<size_type>(__alloc_traits::max_size(__alloc()), numeric_limits<difference_type>::max()); 882 __alloc() = std::move(__c.__alloc()); 1165 __alloc_traits::deallocate(__alloc(), __map_.front(), __block_size); 1176 __alloc_traits::deallocate(__alloc(), __map_.back(), __block_size); 1232 if (__alloc() != __c.__alloc()) { [all...] |
H A D | __node_handle | 109 __node_alloc_type __alloc(*__alloc_); 110 __generic_container_node_destructor<_NodeType, __node_alloc_type>(__alloc, true)(__ptr_); 115 _LIBCPP_HIDE_FROM_ABI __basic_node_handle(__node_pointer_type __ptr, allocator_type const& __alloc) 116 : __ptr_(__ptr), __alloc_(__alloc) {}
|
H A D | forward_list |
|
H A D | string | 1114 basic_string&& __str, size_type __pos, const _Allocator& __alloc = _Allocator()) 1115 : basic_string(std::move(__str), __pos, npos, __alloc) {} 1118 basic_string&& __str, size_type __pos, size_type __n, const _Allocator& __alloc = _Allocator()) 1119 : __alloc_(__alloc) { 1124 if (__alloc_traits::is_always_equal::value || __alloc == __str.__alloc_) {
|
H A D | syncstream | 268 _LIBCPP_HIDE_FROM_ABI basic_syncbuf(streambuf_type* __obuf, _Allocator const& __alloc) 269 : __wrapped_(__obuf), __str_(__alloc) { 456 _LIBCPP_HIDE_FROM_ABI basic_osyncstream(streambuf_type* __obuf, allocator_type const& __alloc) 457 : basic_ostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__obuf, __alloc) {} 462 _LIBCPP_HIDE_FROM_ABI basic_osyncstream(basic_ostream<char_type, traits_type>& __os, allocator_type const& __alloc) 463 : basic_osyncstream(__os.rdbuf(), __alloc) {}
|
H A D | stack | 226 _LIBCPP_HIDE_FROM_ABI stack(_InputIterator __first, _InputIterator __last, const _Alloc& __alloc) 227 : c(__first, __last, __alloc) {} 232 _LIBCPP_HIDE_FROM_ABI stack(from_range_t, _Range&& __range, const _Alloc& __alloc) 233 : c(from_range, std::forward<_Range>(__range), __alloc) {}
|
H A D | tuple | 651 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple(allocator_arg_t, const _Alloc& __alloc, const tuple& __t) 652 : __base_(allocator_arg_t(), __alloc, __t) {} 657 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple(allocator_arg_t, const _Alloc& __alloc, tuple&& __t) 658 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {} 710 tuple(allocator_arg_t, const _Alloc& __alloc, tuple<_Up...>& __t) 711 : __base_(allocator_arg_t(), __alloc, __t) {} 739 tuple(allocator_arg_t, const _Alloc& __alloc, const tuple<_Up...>&& __t) 740 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {} 800 tuple(allocator_arg_t, const _Alloc& __alloc, pair<_U1, _U2>& __p) 801 : __base_(allocator_arg_t(), __alloc, __ [all...] |
H A D | __hash_table | 586 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __alloc_; } 587 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __alloc_; } 589 _LIBCPP_HIDE_FROM_ABI void operator()(pointer __p) _NOEXCEPT { __alloc_traits::deallocate(__alloc(), __p, size()); } 1014 __bucket_list_.get_deleter().__alloc() = std::move(__u.__bucket_list_.get_deleter().__alloc()); 1066 __u.__bucket_list_.get_deleter().__alloc()), 1141 __bucket_list_.get_deleter().__alloc() = __u.__bucket_list_.get_deleter().__alloc(); 1646 allocator_type __alloc(__node_alloc()); 1647 return _NodeHandle(remove(__p).release(), __alloc); [all...] |
H A D | queue | 330 _LIBCPP_HIDE_FROM_ABI queue(_InputIterator __first, _InputIterator __second, const _Alloc& __alloc) 331 : c(__first, __second, __alloc) {} 336 _LIBCPP_HIDE_FROM_ABI queue(from_range_t, _Range&& __range, const _Alloc& __alloc) 337 : c(from_range, std::forward<_Range>(__range), __alloc) {}
|
H A D | list |
|
H A D | set | 828 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return __tree_.__alloc(); } 1128 __alloc_traits::select_on_container_copy_construction(__s.__tree_.__alloc())) { 1293 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return __tree_.__alloc(); }
|
H A D | map | 1170 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(__tree_.__alloc()); } 1769 __alloc_traits::select_on_container_copy_construction(__m.__tree_.__alloc())) { 1850 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(__tree_.__alloc()); }
|
/llvm-project/clang/test/Modules/ |
H A D | pr27401.cpp | 11 _Allocator __alloc() const; 25 vector<_Tp, _Allocator>::vector(const vector &__x) : __vector_base<_Tp, _Allocator>(__x.__alloc()) … in vector()
|
/llvm-project/libcxx/include/__utility/ |
H A D | small_buffer.h | 67 _LIBCPP_HIDE_FROM_ABI _Stored* __alloc() { in __alloc() 85 _Stored* __buffer = __alloc<_Stored>(); in __construct() 65 _LIBCPP_HIDE_FROM_ABI _Stored* __alloc() { __alloc() function
|
/llvm-project/clang/test/Modules/Inputs/PR27401/ |
H A D | b.h | 6 _Allocator __alloc() const;
|
/llvm-project/pstl/include/pstl/internal/ |
H A D | parallel_backend_tbb.h | 532 tbb::detail::d1::small_object_allocator __alloc{}; in allocate_func_task() 534 …__alloc.new_object<__func_task<typename std::decay<_Fn>::type>>(*_M_execute_data, std::forward<_Fn… in allocate_func_task() 535 __t->_M_allocator = __alloc; in allocate_func_task() 645 auto __alloc = _M_allocator; in finalize() local 655 __alloc.deallocate(this, *__ed); in finalize() 702 tbb::detail::d1::small_object_allocator __alloc{}; 703 _M_func_task = __alloc.new_object<__func_task<_Func>>(_Func(std::forward<Args>(args)...)); 704 _M_func_task->_M_allocator = __alloc;
|