Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Duses_allocator_construction.h45 __uses_allocator_construction_args(const _Alloc& __alloc, _Args&&... __args) noexcept { in __uses_allocator_construction_args() argument
50 …return tuple<allocator_arg_t, const _Alloc&, _Args&&...>(allocator_arg, __alloc, std::forward<_Arg… in __uses_allocator_construction_args()
53 return std::forward_as_tuple(std::forward<_Args>(__args)..., __alloc); in __uses_allocator_construction_args()
62 const _Alloc& __alloc, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept { in __uses_allocator_construction_args() argument
66 [&__alloc](auto&&... __args1) { in __uses_allocator_construction_args()
68 __alloc, std::forward<decltype(__args1)>(__args1)...); in __uses_allocator_construction_args()
72 [&__alloc](auto&&... __args2) { in __uses_allocator_construction_args()
74 __alloc, std::forward<decltype(__args2)>(__args2)...); in __uses_allocator_construction_args()
80 _LIBCPP_HIDE_FROM_ABI constexpr auto __uses_allocator_construction_args(const _Alloc& __alloc) noex… in __uses_allocator_construction_args() argument
81 …return std::__uses_allocator_construction_args<_Pair>(__alloc, piecewise_construct, tuple<>{}, tup… in __uses_allocator_construction_args()
[all …]
H A Duninitialized_algorithms.h369 __allocator_destroy_multidimensional(_Alloc& __alloc, _BidirIter __first, _BidirIter __last) noexce… in __allocator_destroy_multidimensional() argument
382 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_destroy_multidimensional()
391 allocator_traits<_Alloc>::destroy(__alloc, std::addressof(*__last)); in __allocator_destroy_multidimensional()
404 _LIBCPP_HIDE_FROM_ABI constexpr void __allocator_construct_at_multidimensional(_Alloc& __alloc, _Tp… in __allocator_construct_at_multidimensional() argument
410 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_construct_at_multidimensional()
424 allocator_traits<_Alloc>::construct(__alloc, __loc); in __allocator_construct_at_multidimensional()
440 __allocator_construct_at_multidimensional(_Alloc& __alloc, _Tp* __loc, _Arg const& __arg) { in __allocator_construct_at_multidimensional() argument
450 __allocator_traits_rebind_t<_Alloc, _Element> __elem_alloc(__alloc); in __allocator_construct_at_multidimensional()
463 allocator_traits<_Alloc>::construct(__alloc, __loc, __arg); in __allocator_construct_at_multidimensional()
479 __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 Dallocation_guard.h53 _LIBCPP_HIDE_FROM_ABI explicit __allocation_guard(_AllocT __alloc, _Size __n)
54 : __alloc_(std::move(__alloc)), in __allocation_guard()
H A Dshared_ptr.h313 _Alloc* __alloc = reinterpret_cast<_Alloc*>(__first); in _ALIGNAS_TYPE() local
314 return __alloc; in _ALIGNAS_TYPE()
859 _ForOverwriteAllocator __alloc(__a);
860 return std::allocate_shared<_Tp>(__alloc);
885 _Alloc const& __alloc, size_t __count, _Tp const& __arg)
886 : __alloc_(__alloc), __count_(__count) {
890 …_LIBCPP_HIDE_FROM_ABI explicit __unbounded_array_control_block(_Alloc const& __alloc, size_t __cou…
891 : __alloc_(__alloc), __count_(__count) {
984 …_LIBCPP_HIDE_FROM_ABI explicit __bounded_array_control_block(_Alloc const& __alloc, _Tp const& __a…
985 : __alloc_(__alloc) {
[all …]
H A Dallocator_traits.h301 allocate_at_least(_Ap& __alloc, size_type __n) {
302 if constexpr (requires { __alloc.allocate_at_least(__n); }) {
303 return __alloc.allocate_at_least(__n);
305 return {__alloc.allocate(__n), __n};
/freebsd/contrib/llvm-project/libcxx/include/
H A D__split_buffer114 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI __alloc_rr& __alloc() _NOEXCEPT { return __end…
115 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI const __alloc_rr& __alloc() const _NOEXCEPT {
208 __alloc() = std::move(__c.__alloc());
259 __alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_));
274 __alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_), __x);
289 __alloc_rr& __a = this->__alloc();
296 … __alloc_traits::construct(__buf.__alloc(), std::__to_address(__buf.__end_), std::move(*__p));
316 __alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_), *__first);
324 __alloc_traits::destroy(__alloc(), std::__to_address(__begin_++));
337 __alloc_traits::destroy(__alloc(), std::__to_address(--__end_));
[all …]
H A Dvector511 from_range_t, _Range&& __range, const allocator_type& __alloc = allocator_type())
512 : __end_cap_(nullptr, __alloc) {
532 __alloc_traits::deallocate(__vec_.__alloc(), __vec_.__begin_, __vec_.capacity());
606 return this->__alloc();
781 auto __allocation = std::__allocate_at_least(__alloc(), __n);
961 …__alloc_traits::construct(this->__alloc(), std::__to_address(__tx.__pos_), std::forward<_Args>(__a…
965 _LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT {
968 …_LIBCPP_CONSTEXPR_SINCE_CXX20 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEP…
985 __alloc_traits::destroy(__alloc(), std::__to_address(--__soon_to_be_end));
1004 if (__alloc() != __c.__alloc()) {
[all …]
H A Ddeque602 __alloc_traits::deallocate(__alloc(), *__i, __block_size);
695 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __size_.second(); }
696 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __size_.second(); }
739 …return std::min<size_type>(__alloc_traits::max_size(__alloc()), numeric_limits<difference_type>::m…
865 __alloc() = std::move(__c.__alloc());
1148 __alloc_traits::deallocate(__alloc(), __map_.front(), __block_size);
1159 __alloc_traits::deallocate(__alloc(), __map_.back(), __block_size);
1215 if (__alloc() != __c.__alloc()) {
1219 __alloc() = __c.__alloc();
1220 __map_.__alloc() = __c.__map_.__alloc();
[all …]
H A D__node_handle109 __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 Dforward_list502 _LIBCPP_HIDE_FROM_ABI __node_allocator& __alloc() _NOEXCEPT { return __before_begin_.second(); }
503 …_LIBCPP_HIDE_FROM_ABI const __node_allocator& __alloc() const _NOEXCEPT { return __before_begin_.s…
540 __node_allocator& __a = __alloc();
558 __node_allocator& __a = __alloc();
578 if (__alloc() != __x.__alloc())
580 __alloc() = __x.__alloc();
586 __alloc() = std::move(__x.__alloc());
602 if (__alloc() == __x.__alloc()) {
624__alloc(), __x.__alloc(), integral_constant<bool, __node_traits::propagate_on_container_swap::valu…
739 …FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(base::__alloc()); }
[all …]
H A Dsyncstream259 _LIBCPP_HIDE_FROM_ABI basic_syncbuf(streambuf_type* __obuf, _Allocator const& __alloc)
260 : __wrapped_(__obuf), __str_(__alloc) {
447 _LIBCPP_HIDE_FROM_ABI basic_osyncstream(streambuf_type* __obuf, allocator_type const& __alloc)
448 : basic_ostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__obuf, __alloc) {}
453 …M_ABI basic_osyncstream(basic_ostream<char_type, traits_type>& __os, allocator_type const& __alloc)
454 : basic_osyncstream(__os.rdbuf(), __alloc) {}
H A Dstring935 auto __allocation = __alloc_traits::allocate(__alloc(), __capacity);
1000 …_r_(__default_init_tag(), __alloc_traits::select_on_container_copy_construction(__str.__alloc())) {
1041 if (__str.__is_long() && __a != __str.__alloc()) // copy, not move
1095 basic_string&& __str, size_type __pos, const _Allocator& __alloc = _Allocator())
1096 : basic_string(std::move(__str), __pos, npos, __alloc) {}
1099 … basic_string&& __str, size_type __pos, size_type __n, const _Allocator& __alloc = _Allocator())
1100 : __r_(__default_init_tag(), __alloc) {
1105 if (__alloc_traits::is_always_equal::value || __alloc == __str.__alloc()) {
1212 __alloc_traits::deallocate(__alloc(), __get_long_pointer(), __get_long_cap());
1289 size_type __m = __alloc_traits::max_size(__alloc());
[all …]
H A Dstack223 _LIBCPP_HIDE_FROM_ABI stack(_InputIterator __first, _InputIterator __last, const _Alloc& __alloc)
224 : c(__first, __last, __alloc) {}
229 _LIBCPP_HIDE_FROM_ABI stack(from_range_t, _Range&& __range, const _Alloc& __alloc)
230 : c(from_range, std::forward<_Range>(__range), __alloc) {}
H A Dtuple643 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple(allocator_arg_t, const _Alloc& __alloc, …
644 : __base_(allocator_arg_t(), __alloc, __t) {}
649 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple(allocator_arg_t, const _Alloc& __alloc, …
650 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {}
702 tuple(allocator_arg_t, const _Alloc& __alloc, tuple<_Up...>& __t)
703 : __base_(allocator_arg_t(), __alloc, __t) {}
731 tuple(allocator_arg_t, const _Alloc& __alloc, const tuple<_Up...>&& __t)
732 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {}
792 tuple(allocator_arg_t, const _Alloc& __alloc, pair<_U1, _U2>& __p)
793 : __base_(allocator_arg_t(), __alloc, __p) {}
[all …]
H A D__hash_table578 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __data_.second(); }
579 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __data_.second(); }
581 …_LIBCPP_HIDE_FROM_ABI void operator()(pointer __p) _NOEXCEPT { __alloc_traits::deallocate(__alloc(…
1006 __bucket_list_.get_deleter().__alloc() = std::move(__u.__bucket_list_.get_deleter().__alloc());
1050 __u.__bucket_list_.get_deleter().__alloc()),
1117 __bucket_list_.get_deleter().__alloc() = __u.__bucket_list_.get_deleter().__alloc();
1622 allocator_type __alloc(__node_alloc());
1623 return _NodeHandle(remove(__p).release(), __alloc);
1705 __pointer_allocator& __npa = __bucket_list_.get_deleter().__alloc();
2005 …std::__swap_allocator(__bucket_list_.get_deleter().__alloc(), __u.__bucket_list_.get_deleter().__a…
H A Dqueue327 …_LIBCPP_HIDE_FROM_ABI queue(_InputIterator __first, _InputIterator __second, const _Alloc& __alloc)
328 : c(__first, __second, __alloc) {}
333 _LIBCPP_HIDE_FROM_ABI queue(from_range_t, _Range&& __range, const _Alloc& __alloc)
334 : c(from_range, std::forward<_Range>(__range), __alloc) {}
H A Dlist552 __node_allocator& __alloc = __node_alloc();
553 __allocation_guard<__node_allocator> __guard(__alloc, 1);
564 __alloc, std::addressof(__guard.__get()->__get_value()), std::forward<_Args>(__args)...);
571 __node_allocator& __alloc = __node_alloc();
572 __node_alloc_traits::destroy(__alloc, std::addressof(__node->__get_value()));
574 __node_alloc_traits::deallocate(__alloc, __node, 1);
H A Dset815 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return __tree_.__alloc(); }
1107 __alloc_traits::select_on_container_copy_construction(__s.__tree_.__alloc())) {
1272 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return __tree_.__alloc(); }
H A Dmap1159 …OM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(__tree_.__alloc()); }
1750 __alloc_traits::select_on_container_copy_construction(__m.__tree_.__alloc())) {
1831 …OM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(__tree_.__alloc()); }
H A D__tree954 …_LIBCPP_HIDE_FROM_ABI allocator_type __alloc() const _NOEXCEPT { return allocator_type(__node_allo…
1464 if (__a == __t.__alloc()) {
1972 return _NodeHandle(__np, __alloc());
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dsmall_buffer.h65 _LIBCPP_HIDE_FROM_ABI _Stored* __alloc() { in __alloc() function
83 _Stored* __buffer = __alloc<_Stored>(); in __construct()
/freebsd/contrib/llvm-project/libcxx/include/__pstl/internal/
H A Dparallel_backend_tbb.h