Home
last modified time | relevance | path

Searched refs:__alloc (Results 1 – 25 of 42) sorted by relevance

12

/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Duses_allocator_construction.h66 _LIBCPP_HIDE_FROM_ABI constexpr _Type __make_obj_using_allocator(const _Alloc& __alloc, _Args&&... …
72 __apply(const _Alloc& __alloc, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept {
76 [&__alloc](auto&&... __args1) {
78 __alloc, std::forward<decltype(__args1)>(__args1)...);
82 [&__alloc](auto&&... __args2) {
84 __alloc, std::forward<decltype(__args2)>(__args2)...);
90 static _LIBCPP_HIDE_FROM_ABI constexpr auto __apply(const _Alloc& __alloc) noexcept {
91 …return __uses_allocator_construction_args<_Pair>::__apply(__alloc, piecewise_construct, tuple<>{},…
95 …static _LIBCPP_HIDE_FROM_ABI constexpr auto __apply(const _Alloc& __alloc, _Up&& __u, _Vp&& __v) n…
97 __alloc,
[all …]
H A Duninitialized_algorithms.h371 __allocator_destroy_multidimensional(_Alloc& __alloc, _BidirIter __first, _BidirIter __last) noexce… in __allocator_destroy_multidimensional() argument
384 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_destroy_multidimensional()
393 allocator_traits<_Alloc>::destroy(__alloc, std::addressof(*__last)); in __allocator_destroy_multidimensional()
406 _LIBCPP_HIDE_FROM_ABI constexpr void __allocator_construct_at_multidimensional(_Alloc& __alloc, _Tp… in __allocator_construct_at_multidimensional() argument
412 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_construct_at_multidimensional()
426 allocator_traits<_Alloc>::construct(__alloc, __loc); in __allocator_construct_at_multidimensional()
442 __allocator_construct_at_multidimensional(_Alloc& __alloc, _Tp* __loc, _Arg const& __arg) { in __allocator_construct_at_multidimensional() argument
452 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_construct_at_multidimensional()
465 allocator_traits<_Alloc>::construct(__alloc, __loc, __arg); in __allocator_construct_at_multidimensional()
481 __uninitialized_allocator_fill_n_multidimensional(_Alloc& __alloc, _BidirIter __it, _Size __n, _Tp … in __uninitialized_allocator_fill_n_multidimensional() argument
[all …]
H A Dallocate_at_least.h25 [[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 Dtemp_value.h48 _LIBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI _LIBCPP_CONSTEXPR_SINCE_CXX20 __temp_value(_Alloc& __alloc, _Args&&... __args) in __temp_value()
49 : __a(__alloc) { in __temp_value()
H A Ddestroy.h48 __allocator_destroy(_Alloc& __alloc, _Iter __first, _Sent __last) { in __allocator_destroy() argument
50 allocator_traits<_Alloc>::destroy(__alloc, std::addressof(*__first)); in __allocator_destroy()
H A Dallocation_guard.h52 …_LIBCPP_CONSTEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI explicit __allocation_guard(_AllocT __alloc, _… in __allocation_guard()
53 : __alloc_(std::move(__alloc)), in __allocation_guard()
H A Dallocator_traits.h278 allocate_at_least(_Ap& __alloc, size_type __n) {
279 if constexpr (requires { __alloc.allocate_at_least(__n); }) {
280 return __alloc.allocate_at_least(__n);
282 return {__alloc.allocate(__n), __n};
H A Dshared_ptr.h752 _ForOverwriteAllocator __alloc(__a);
753 return std::allocate_shared<_Tp>(__alloc);
778 _Alloc const& __alloc, size_t __count, _Tp const& __arg)
779 : __alloc_(__alloc), __count_(__count) {
783 …_LIBCPP_HIDE_FROM_ABI explicit __unbounded_array_control_block(_Alloc const& __alloc, size_t __cou…
784 : __alloc_(__alloc), __count_(__count) {
877 …_LIBCPP_HIDE_FROM_ABI explicit __bounded_array_control_block(_Alloc const& __alloc, _Tp const& __a…
878 : __alloc_(__alloc) {
882 …P_HIDE_FROM_ABI explicit __bounded_array_control_block(_Alloc const& __alloc) : __alloc_(__alloc) {
961 _ForOverwriteAllocator __alloc(__a);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__flat_set/
H A Dflat_multiset.h184 _LIBCPP_HIDE_FROM_ABI explicit flat_multiset(const _Allocator& __alloc) in flat_multiset() argument
185 : __keys_(std::make_obj_using_allocator<container_type>(__alloc)), __compare_() {} in flat_multiset()
189 _LIBCPP_HIDE_FROM_ABI flat_multiset(const key_compare& __comp, const _Allocator& __alloc) in flat_multiset() argument
190 : __keys_(std::make_obj_using_allocator<container_type>(__alloc)), __compare_(__comp) {} in flat_multiset()
194 _LIBCPP_HIDE_FROM_ABI flat_multiset(const container_type& __keys, const _Allocator& __alloc) in flat_multiset() argument
195 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __keys)), __compare_() { in flat_multiset()
202 flat_multiset(const container_type& __keys, const key_compare& __comp, const _Allocator& __alloc) in flat_multiset() argument
203 … : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __keys)), __compare_(__comp) { in flat_multiset()
209 …ROM_ABI flat_multiset(sorted_equivalent_t, const container_type& __keys, const _Allocator& __alloc) in flat_multiset() argument
210 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __keys)), __compare_() { in flat_multiset()
[all …]
H A Dflat_set.h186 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 explicit flat_set(const _Allocator& __alloc) in flat_set() argument
187 : __keys_(std::make_obj_using_allocator<container_type>(__alloc)), __compare_() {} in flat_set()
191 …OM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_set(const key_compare& __comp, const _Allocator& __alloc) in flat_set() argument
192 : __keys_(std::make_obj_using_allocator<container_type>(__alloc)), __compare_(__comp) {} in flat_set()
196 …ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_set(const container_type& __keys, const _Allocator& __alloc) in flat_set() argument
197 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __keys)), __compare_() { in flat_set()
204 flat_set(const container_type& __keys, const key_compare& __comp, const _Allocator& __alloc) in flat_set() argument
205 … : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __keys)), __compare_(__comp) { in flat_set()
212 flat_set(sorted_unique_t, const container_type& __keys, const _Allocator& __alloc) in flat_set() argument
213 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __keys)), __compare_() { in flat_set()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__memory/
H A Duninitialized_algorithms.h174 _LIBCPP_HIDE_FROM_ABI void __allocator_destroy(_Alloc& __alloc, _Iter __first, _Sent __last) { in __allocator_destroy() argument
176 allocator_traits<_Alloc>::destroy(__alloc, std::__to_address(__first)); in __allocator_destroy()
182 …_LIBCPP_HIDE_FROM_ABI _AllocatorDestroyRangeReverse(_Alloc& __alloc, _Iter& __first, _Iter& __last) in _AllocatorDestroyRangeReverse() argument
183 : __alloc_(__alloc), __first_(__first), __last_(__last) {} in _AllocatorDestroyRangeReverse()
201 __uninitialized_allocator_copy_impl(_Alloc& __alloc, _Iter1 __first1, _Sent1 __last1, _Iter2 __firs… in __uninitialized_allocator_copy_impl() argument
204 …std::__make_exception_guard(_AllocatorDestroyRangeReverse<_Alloc, _Iter2>(__alloc, __destruct_firs… in __uninitialized_allocator_copy_impl()
206 allocator_traits<_Alloc>::construct(__alloc, std::__to_address(__first2), *__first1); in __uninitialized_allocator_copy_impl()
246 __uninitialized_allocator_copy(_Alloc& __alloc, _Iter1 __first1, _Sent1 __last1, _Iter2 __first2) {
249 __alloc, __unwrapped_range.first, __unwrapped_range.second, std::__unwrap_iter(__first2));
279 __uninitialized_allocator_relocate(_Alloc& __alloc, _Tp* __first, _Tp* __last, _Tp* __result) {
[all …]
H A Dallocate_at_least.h30 __allocate_at_least(_Alloc& __alloc, size_t __n) { in __allocate_at_least() argument
31 return {__alloc.allocate(__n), __n}; in __allocate_at_least()
H A Dtemp_value.h36 …IBCPP_HIDE_FROM_ABI _LIBCPP_NO_CFI __temp_value(_Alloc& __alloc, _Args&&... __args) : __a(__alloc)… in __temp_value()
H A Dallocation_guard.h53 _LIBCPP_HIDE_FROM_ABI explicit __allocation_guard(_AllocT __alloc, _Size __n) in __allocation_guard()
54 : __alloc_(std::move(__alloc)), in __allocation_guard()
/freebsd/contrib/llvm-project/libcxx/include/__flat_map/
H A Dflat_multimap.h171 _LIBCPP_HIDE_FROM_ABI flat_multimap(const flat_multimap& __other, const _Allocator& __alloc) in flat_multimap() argument
173 __alloc,
180 _LIBCPP_HIDE_FROM_ABI flat_multimap(flat_multimap&& __other, const _Allocator& __alloc) in flat_multimap() argument
185 __alloc,
208 …_container_type& __key_cont, const mapped_container_type& __mapped_cont, const _Allocator& __alloc) in flat_multimap() argument
209 : flat_multimap(__ctor_uses_allocator_tag{}, __alloc, __key_cont, __mapped_cont) { in flat_multimap()
221 const _Allocator& __alloc) in flat_multimap() argument
222 : flat_multimap(__ctor_uses_allocator_tag{}, __alloc, __key_cont, __mapped_cont, __comp) { in flat_multimap()
245 const _Allocator& __alloc) in flat_multimap() argument
246 : flat_multimap(__ctor_uses_allocator_tag{}, __alloc, __key_cont, __mapped_cont) { in flat_multimap()
[all …]
H A Dflat_map.h169 …FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_map(const flat_map& __other, const _Allocator& __alloc) in flat_map() argument
171 __alloc,
178 …HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_map(flat_map&& __other, const _Allocator& __alloc) in flat_map() argument
183 __alloc,
206 …_container_type& __key_cont, const mapped_container_type& __mapped_cont, const _Allocator& __alloc) in flat_map() argument
207 : flat_map(__ctor_uses_allocator_tag{}, __alloc, __key_cont, __mapped_cont) { in flat_map()
219 const _Allocator& __alloc) in flat_map() argument
220 : flat_map(__ctor_uses_allocator_tag{}, __alloc, __key_cont, __mapped_cont, __comp) { in flat_map()
244 const _Allocator& __alloc) in flat_map() argument
245 : flat_map(__ctor_uses_allocator_tag{}, __alloc, __key_cont, __mapped_cont) { in flat_map()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A D__split_buffer108 _LIBCPP_HIDE_FROM_ABI __alloc_rr& __alloc() _NOEXCEPT { return __end_cap_.second(); }
109 _LIBCPP_HIDE_FROM_ABI const __alloc_rr& __alloc() const _NOEXCEPT { return __end_cap_.second(); }
185 __alloc() = std::move(__c.__alloc());
235 __alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_));
249 __alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_), __x);
262 __alloc_rr& __a = this->__alloc();
269 … __alloc_traits::construct(__buf.__alloc(), std::__to_address(__buf.__end_), std::move(*__p));
287 __alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_), *__first);
294 __alloc_traits::destroy(__alloc(), std::__to_address(__begin_++));
306 __alloc_traits::destroy(__alloc(), std::__to_address(--__end_));
[all …]
H A Dvector475 __alloc_traits::deallocate(__vec_.__alloc(), __vec_.__begin_, __vec_.capacity());
509 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return this->__alloc(); }
624 auto __allocation = std::__allocate_at_least(__alloc(), __n);
795 …__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_), std::forward<_Args>(__a…
799 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return this->__end_cap_.second(); }
800 …_LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return this->__end_cap_.se…
809 __alloc_traits::destroy(__alloc(), std::__to_address(--__soon_to_be_end));
826 if (__alloc() != __c.__alloc()) {
829 __alloc_traits::deallocate(__alloc(), this->__begin_, capacity());
832 __alloc() = __c.__alloc();
[all …]
H A Ddeque552 __alloc_traits::deallocate(__alloc(), *__i, __block_size);
592 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __size_.second(); }
593 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __size_.second(); }
636 …return std::min<size_type>(__alloc_traits::max_size(__alloc()), numeric_limits<difference_type>::m…
701 …_FROM_ABI void __move_assign_alloc(deque& __c, true_type) { __alloc() = std::move(__c.__alloc()); }
980 __alloc_traits::deallocate(__alloc(), __map_.front(), __block_size);
991 __alloc_traits::deallocate(__alloc(), __map_.back(), __block_size);
1047 if (__alloc() != __c.__alloc()) {
1051 __alloc() = __c.__alloc();
1052 __map_.__alloc() = __c.__map_.__alloc();
[all …]
H A Dforward_list477 _LIBCPP_HIDE_FROM_ABI __node_allocator& __alloc() _NOEXCEPT { return __before_begin_.second(); }
478 …_LIBCPP_HIDE_FROM_ABI const __node_allocator& __alloc() const _NOEXCEPT { return __before_begin_.s…
506 __node_allocator& __a = __alloc();
524 __node_allocator& __a = __alloc();
539 if (__alloc() != __x.__alloc())
541 __alloc() = __x.__alloc();
546 __alloc() = std::move(__x.__alloc());
558__alloc(), __x.__alloc(), integral_constant<bool, __node_traits::propagate_on_container_swap::valu…
633 …FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(base::__alloc()); }
657 …return std::min<size_type>(__node_traits::max_size(base::__alloc()), numeric_limits<difference_typ…
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Ddeque624 __alloc_traits::deallocate(__alloc(), *__i, __block_size);
718 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __alloc_; }
719 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __alloc_; }
762 …return std::min<size_type>(__alloc_traits::max_size(__alloc()), numeric_limits<difference_type>::m…
888 __alloc() = std::move(__c.__alloc());
1171 __alloc_traits::deallocate(__alloc(), __map_.front(), __block_size);
1182 __alloc_traits::deallocate(__alloc(), __map_.back(), __block_size);
1238 if (__alloc() != __c.__alloc()) {
1242 __alloc() = __c.__alloc();
1319 …: __map_(__pointer_allocator(__alloc_traits::select_on_container_copy_construction(__c.__alloc()))…
[all …]
H A D__node_handle110 __node_alloc_type __alloc(*__alloc_);
111 __generic_container_node_destructor<_NodeType, __node_alloc_type>(__alloc, true)(__ptr_);
116 …_LIBCPP_HIDE_FROM_ABI __basic_node_handle(__node_pointer_type __ptr, allocator_type const& __alloc)
117 : __ptr_(__ptr), __alloc_(__alloc) {}
H A Dsyncstream267 _LIBCPP_HIDE_FROM_ABI basic_syncbuf(streambuf_type* __obuf, _Allocator const& __alloc)
268 : __wrapped_(__obuf), __str_(__alloc) {
455 _LIBCPP_HIDE_FROM_ABI basic_osyncstream(streambuf_type* __obuf, allocator_type const& __alloc)
456 : basic_ostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__obuf, __alloc) {}
461 …M_ABI basic_osyncstream(basic_ostream<char_type, traits_type>& __os, allocator_type const& __alloc)
462 : basic_osyncstream(__os.rdbuf(), __alloc) {}
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dsmall_buffer.h67 _LIBCPP_HIDE_FROM_ABI _Stored* __alloc() { in __alloc() function
85 _Stored* __buffer = __alloc<_Stored>(); in __construct()
/freebsd/contrib/llvm-project/libcxx/include/__pstl/internal/
H A Dparallel_backend_tbb.h

12