Home
last modified time | relevance | path

Searched refs:__alloc_ (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/
H A D__node_handle100 optional<allocator_type> __alloc_;
104 __alloc_ = std::nullopt;
110 __node_alloc_type __alloc(*__alloc_);
117 : __ptr_(__ptr), __alloc_(__alloc) {}
123 : __ptr_(__other.__ptr_), __alloc_(std::move(__other.__alloc_)) {
125 __other.__alloc_ = std::nullopt;
130 __alloc_ == std::nullopt || __alloc_traits::propagate_on_container_move_assignment::value ||
131 __alloc_ == __other.__alloc_,
138 if (__alloc_traits::propagate_on_container_move_assignment::value || __alloc_ == std::nullopt)
139 __alloc_ = std::move(__other.__alloc_);
[all …]
H A D__split_buffer84 _LIBCPP_COMPRESSED_PAIR(pointer, __cap_, allocator_type, __alloc_);
94 : __first_(nullptr), __begin_(nullptr), __end_(nullptr), __cap_(nullptr), __alloc_(__a) {}
97 : __first_(nullptr), __begin_(nullptr), __end_(nullptr), __cap_(nullptr), __alloc_(__a) {}
192 __alloc_ = std::move(__c.__alloc_);
243 __alloc_traits::construct(__alloc_, std::__to_address(__tx.__pos_));
258 __alloc_traits::construct(__alloc_, std::__to_address(__tx.__pos_), __x);
266 __alloc_rr& __a = __alloc_;
273 __alloc_traits::construct(__buf.__alloc_, std::__to_address(__buf.__end_), std::move(*__p));
293 __alloc_traits::construct(__alloc_, std::__to_address(__tx.__pos_), *__first);
301 __alloc_traits::destroy(__alloc_, std::__to_address(__begin_++));
[all …]
H A Dforward_list489 _LIBCPP_COMPRESSED_PAIR(__begin_node, __before_begin_, __node_allocator, __alloc_);
507 : __before_begin_(__begin_node()), __alloc_(__node_allocator(__a)) {}
509 : __before_begin_(__begin_node()), __alloc_(__a) {}
538 __allocation_guard<__node_allocator> __guard(__alloc_, 1);
548 …__node_traits::construct(__alloc_, std::addressof(__guard.__get()->__get_value()), std::forward<_A…
555 __node_traits::destroy(__alloc_, std::addressof(__node->__get_value()));
557 __node_traits::deallocate(__alloc_, __node, 1);
576 if (__alloc_ != __x.__alloc_)
578 __alloc_ = __x.__alloc_;
585 __alloc_ = std::move(__x.__alloc_);
[all …]
H A Dstring903 _LIBCPP_COMPRESSED_PAIR(__rep, __rep_, allocator_type, __alloc_);
919 : __alloc_(__a) {
927 auto __allocation = __alloc_traits::allocate(__alloc_, __capacity);
939 : __alloc_(__a) {
997 __alloc_(__a) {
1002 : __alloc_(__alloc_traits::select_on_container_copy_construction(__str.__alloc_)) {
1012 : __alloc_(__a) {
1035 __alloc_(std::move(__str.__alloc_)) {
1043 : __alloc_(__a) {
1044 if (__str.__is_long() && __a != __str.__alloc_) // copy, not move
[all …]
H A Dfuture707 _Alloc __alloc_;
712 _LIBCPP_HIDE_FROM_ABI explicit __assoc_state_alloc(const _Alloc& __a) : __alloc_(__a) {}
722 _Al __a(__alloc_);
730 _Alloc __alloc_;
735 _LIBCPP_HIDE_FROM_ABI explicit __assoc_state_alloc(const _Alloc& __a) : __alloc_(__a) {}
743 _Al __a(__alloc_);
751 _Alloc __alloc_;
756 _LIBCPP_HIDE_FROM_ABI explicit __assoc_sub_state_alloc(const _Alloc& __a) : __alloc_(__a) {}
764 _Al __a(__alloc_);
1412 _LIBCPP_COMPRESSED_PAIR(_Fp, __func_, _Alloc, __alloc_);
[all …]
H A Ddeque609 _LIBCPP_COMPRESSED_PAIR(size_type, __size_, allocator_type, __alloc_);
628 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0), __alloc_(__a) {
640 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0), __alloc_(__a) {
654 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0), __alloc_(__a) {
718 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __alloc_; }
719 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __alloc_; }
1243 __map_.__alloc_ = __c.__map_.__alloc_;
1288 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0), __alloc_(__a) {
1312 : __map_(__pointer_allocator(__a)), __start_(0), __size_(0), __alloc_(__a) {
1322 __alloc_(__map_.__alloc_) {
[all …]
H A D__hash_table581 _LIBCPP_COMPRESSED_PAIR(size_type, __size_, allocator_type, __alloc_);
591 : __size_(__size), __alloc_(__a) {}
595 : __size_(std::move(__x.__size_)), __alloc_(std::move(__x.__alloc_)) {
602 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __alloc_; }
603 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __alloc_; }
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__memory/
H A Dallocation_guard.h54 : __alloc_(std::move(__alloc)), in __allocation_guard()
56 … __ptr_(allocator_traits<_Alloc>::allocate(__alloc_, __n_)) // initialization order is important in __allocation_guard()
63 : __alloc_(std::move(__other.__alloc_)), in __allocation_guard()
74 __alloc_ = std::move(__other.__alloc_);
95 allocator_traits<_Alloc>::deallocate(__alloc_, __ptr_, __n_); in __destroy()
99 _Alloc __alloc_; member
H A Dallocator_destructor.h30 _Alloc& __alloc_;
34 …_LIBCPP_HIDE_FROM_ABI __allocator_destructor(_Alloc& __a, size_type __s) _NOEXCEPT : __alloc_(__a)… in __allocator_destructor()
35 …ROM_ABI void operator()(pointer __p) _NOEXCEPT { __alloc_traits::deallocate(__alloc_, __p, __s_); } in operator()
H A Duninitialized_algorithms.h183 : __alloc_(__alloc), __first_(__first), __last_(__last) {} in _AllocatorDestroyRangeReverse()
186 …std::__allocator_destroy(__alloc_, std::reverse_iterator<_Iter>(__last_), std::reverse_iterator<_I… in operator()
190 _Alloc& __alloc_;
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dallocation_guard.h53 : __alloc_(std::move(__alloc)), in __allocation_guard()
55 … __ptr_(allocator_traits<_Alloc>::allocate(__alloc_, __n_)) // initialization order is important in __allocation_guard()
64 : __alloc_(std::move(__other.__alloc_)), in __allocation_guard()
75 __alloc_ = std::move(__other.__alloc_);
96 allocator_traits<_Alloc>::deallocate(__alloc_, __ptr_, __n_); in __destroy()
100 _Alloc __alloc_; member
H A Dallocator_destructor.h30 _Alloc& __alloc_;
34 …_LIBCPP_HIDE_FROM_ABI __allocator_destructor(_Alloc& __a, size_type __s) _NOEXCEPT : __alloc_(__a)… in __allocator_destructor()
35 …ROM_ABI void operator()(pointer __p) _NOEXCEPT { __alloc_traits::deallocate(__alloc_, __p, __s_); } in operator()
H A Dshared_ptr.h97 _LIBCPP_COMPRESSED_TRIPLE(_Tp, __ptr_, _Dp, __deleter_, _Alloc, __alloc_);
101 : __ptr_(__p), __deleter_(std::move(__d)), __alloc_(std::move(__a)) {} in __shared_ptr_pointer()
133 _Al __a(__alloc_); in __on_zero_shared_weak()
134 __alloc_.~_Alloc(); in __on_zero_shared_weak()
199 _LIBCPP_COMPRESSED_PAIR(_Alloc, __alloc_, __value_type, __elem_);
208 return std::addressof(reinterpret_cast<_Data*>(__buffer_)->__alloc_); in __get_alloc()
779 : __alloc_(__alloc), __count_(__count) {
780 …std::__uninitialized_allocator_fill_n_multidimensional(__alloc_, std::begin(__data_), __count_, __…
784 : __alloc_(__alloc), __count_(__count) {
791 …std::__uninitialized_allocator_value_construct_n_multidimensional(__alloc_, std::begin(__data_), _…
[all …]
H A Duses_allocator_construction.h154 return std::__make_obj_using_allocator<_PairMutable>(__alloc_, __pair);
158 return std::__make_obj_using_allocator<_PairMutable>(__alloc_, std::move(__pair));
161 const _Alloc& __alloc_;
H A Duninitialized_algorithms.h520 : __alloc_(__alloc), __first_(__first), __last_(__last) {} in _AllocatorDestroyRangeReverse()
523 …std::__allocator_destroy(__alloc_, std::reverse_iterator<_Iter>(__last_), std::reverse_iterator<_I… in operator()
527 _Alloc& __alloc_;
/freebsd/contrib/llvm-project/libcxx/include/__vector/
H A Dvector.h144 : __alloc_(__a) { in vector()
158 : __alloc_(__a) { in vector()
180 : __alloc_(__a) { in vector()
203 : __alloc_(__a) { in vector()
224 : __alloc_(__a) { in vector()
233 : __alloc_(__alloc) { in __alloc_() function
253 __alloc_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.capacity()); in operator()
265 : __alloc_(__alloc_traits::select_on_container_copy_construction(__x.__alloc_)) { in vector()
270 : __alloc_(__a) { in vector()
282 : __alloc_(__a) { in vector()
[all …]
H A Dvector_bool.h102 _LIBCPP_COMPRESSED_PAIR(size_type, __cap_, __storage_allocator, __alloc_);
142 __storage_traits::deallocate(__vec_.__alloc_, __vec_.__begin_, __vec_.__cap_);
173 : __begin_(nullptr), __size_(0), __cap_(0), __alloc_(static_cast<__storage_allocator>(__a)) {
238 return allocator_type(this->__alloc_);
451 auto __allocation = std::__allocate_at_least(__alloc_, __external_cap_to_internal(__n));
492 if (__alloc_ != __c.__alloc_)
494 __alloc_ = __c.__alloc_;
510 __alloc_ = std::move(__c.__alloc_);
528 __storage_traits::deallocate(this->__alloc_, this->__begin_, __cap_);
537 size_type __amax = __storage_traits::max_size(__alloc_);
[all …]
/freebsd/contrib/llvm-project/libcxx/include/experimental/
H A Dmemory_resource
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dbuffer.h617 auto __result = std::__allocate_at_least(__alloc_, std::max(__size_hint, 256 / sizeof(_CharT)));
624 allocator_traits<_Alloc>::deallocate(__alloc_, __ptr_, __capacity_);
680 auto __result = std::__allocate_at_least(__alloc_, __capacity);
682 allocator_traits<_Alloc>::deallocate(__alloc_, __result.ptr, __result.count);
689 allocator_traits<_Alloc>::deallocate(__alloc_, __ptr_, __capacity_);
694 _LIBCPP_NO_UNIQUE_ADDRESS _Alloc __alloc_;
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dfuture652 _Alloc __alloc_;
657 _LIBCPP_HIDE_FROM_ABI explicit __assoc_state_alloc(const _Alloc& __a) : __alloc_(__a) {}
667 _Al __a(__alloc_);
675 _Alloc __alloc_;
680 _LIBCPP_HIDE_FROM_ABI explicit __assoc_state_alloc(const _Alloc& __a) : __alloc_(__a) {}
688 _Al __a(__alloc_);
696 _Alloc __alloc_;
701 _LIBCPP_HIDE_FROM_ABI explicit __assoc_sub_state_alloc(const _Alloc& __a) : __alloc_(__a) {}
709 _Al __a(__alloc_);
/freebsd/contrib/llvm-project/libcxx/src/
H A Dstring.cpp56 auto __allocation = std::__allocate_at_least(__alloc_, __recommend(__reserve) + 1); in __init()