| /freebsd-14.2/contrib/llvm-project/libcxx/include/__memory/ |
| H A D | uses_allocator_construction.h | 45 __uses_allocator_construction_args(const _Alloc& __alloc, _Args&&... __args) noexcept { in __uses_allocator_construction_args() argument 53 return std::forward_as_tuple(std::forward<_Args>(__args)..., __alloc); in __uses_allocator_construction_args() 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() 88 __alloc, in __uses_allocator_construction_args() 114 __alloc, in __uses_allocator_construction_args() 125 __alloc, in __uses_allocator_construction_args() 139 __alloc, in __uses_allocator_construction_args() [all …]
|
| H A D | allocate_at_least.h | 32 allocate_at_least(_Alloc& __alloc, size_t __n) { in allocate_at_least() argument 33 if constexpr (requires { __alloc.allocate_at_least(__n); }) { in allocate_at_least() 34 return __alloc.allocate_at_least(__n); in allocate_at_least() 36 return {__alloc.allocate(__n), __n}; in allocate_at_least() 41 [[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr auto __allocate_at_least(_Alloc& __alloc, size_t __n)… in __allocate_at_least() argument 42 return std::allocate_at_least(__alloc, __n); in __allocate_at_least() 54 __allocate_at_least(_Alloc& __alloc, size_t __n) { 55 return {__alloc.allocate(__n), __n};
|
| H A D | uninitialized_algorithms.h | 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() 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() 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() 482 __allocator_traits_rebind_t<_Alloc, _ValueType> __value_alloc(__alloc); in __uninitialized_allocator_fill_n_multidimensional() 500 __allocator_traits_rebind_t<_Alloc, _ValueType> __value_alloc(__alloc); in __uninitialized_allocator_value_construct_n_multidimensional() 517 __allocator_destroy(_Alloc& __alloc, _Iter __first, _Sent __last) { in __allocator_destroy() argument 519 allocator_traits<_Alloc>::destroy(__alloc, std::__to_address(__first)); in __allocator_destroy() [all …]
|
| 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 | 53 _LIBCPP_HIDE_FROM_ABI explicit __allocation_guard(_AllocT __alloc, _Size __n) in __allocation_guard() 54 : __alloc_(std::move(__alloc)), in __allocation_guard()
|
| H A D | shared_ptr.h | 315 return __alloc; in _ALIGNAS_TYPE() 839 _ForOverwriteAllocator __alloc(__a); 840 return std::allocate_shared<_Tp>(__alloc); 865 _Alloc const& __alloc, size_t __count, _Tp const& __arg) 866 : __alloc_(__alloc), __count_(__count) { 871 : __alloc_(__alloc), __count_(__count) { 965 : __alloc_(__alloc) { 969 …P_HIDE_FROM_ABI explicit __bounded_array_control_block(_Alloc const& __alloc) : __alloc_(__alloc) { 1048 _ForOverwriteAllocator __alloc(__a); 1049 return std::__allocate_shared_bounded_array<_Tp>(__alloc); [all …]
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/ |
| H A D | __split_buffer | 198 __alloc() = std::move(__c.__alloc()); 279 __alloc_rr& __a = this->__alloc(); 314 __alloc_traits::destroy(__alloc(), std::__to_address(__begin_++)); 327 __alloc_traits::destroy(__alloc(), std::__to_address(--__end_)); 343 auto __allocation = std::__allocate_at_least(__alloc(), __cap); 355 __alloc_traits::deallocate(__alloc(), __first_, capacity()); 375 if (__a == __c.__alloc()) { 385 auto __allocation = std::__allocate_at_least(__alloc(), __c.size()); 418 std::__swap_allocator(__alloc(), __x.__alloc()); 424 __split_buffer<value_type, __alloc_rr&> __t(__n, 0, __alloc()); [all …]
|
| H A D | vector | 566 return this->__alloc(); 945 if (__alloc() != __c.__alloc()) { 951 __alloc() = __c.__alloc(); 958 __alloc() = std::move(__c.__alloc()); 1223 if (__a == __x.__alloc()) { 1274 if (__alloc() != __c.__alloc()) { 1773 __alloc_traits::propagate_on_container_swap::value || this->__alloc() == __x.__alloc(), 2223 if (__alloc() != __c.__alloc()) 2225 __alloc() = __c.__alloc(); 2241 __alloc() = std::move(__c.__alloc()); [all …]
|
| H A D | deque | 833 __alloc() = std::move(__c.__alloc()); 1213 if (__alloc() != __c.__alloc()) { 1217 __alloc() = __c.__alloc(); 1218 __map_.__alloc() = __c.__map_.__alloc(); 1344 if (__a == __c.__alloc()) { 1365 if (__alloc() != __c.__alloc()) { 1452 return __alloc(); 1473 allocator_type& __a = __alloc(); 1541 allocator_type& __a = __alloc(); 2225 __map_.__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 | 504 _LIBCPP_HIDE_FROM_ABI __node_allocator& __alloc() _NOEXCEPT { return __before_begin_.second(); } 544 __node_allocator& __a = __alloc(); 563 __node_allocator& __a = __alloc(); 583 if (__alloc() != __x.__alloc()) 585 __alloc() = __x.__alloc(); 591 __alloc() = std::move(__x.__alloc()); 607 if (__alloc() == __x.__alloc()) { 629 …__alloc(), __x.__alloc(), integral_constant<bool, __node_traits::propagate_on_container_swap::valu… 960 : base(__node_traits::select_on_container_copy_construction(__x.__alloc())) { 983 if (base::__alloc() != __x.__alloc()) { [all …]
|
| H A D | string | 998 if (__alloc_traits::is_always_equal::value || __alloc == __str.__alloc()) { 1358 …_LIBCPP_ASSERT_INTERNAL(__alloc() == __str.__alloc(), "__move_assign called with wrong allocator"); 1606 return __alloc(); 2027 if (__alloc() == __str.__alloc()) 2028 __alloc() = __str.__alloc(); 2032 __alloc() = __str.__alloc(); 2040 __alloc() = std::move(__a); 2073 __alloc() = std::move(__c.__alloc()); 2554 if (__alloc() != __str.__alloc()) 3314 __alloc() == __str.__alloc(), [all …]
|
| H A D | syncstream | 257 _LIBCPP_HIDE_FROM_ABI basic_syncbuf(streambuf_type* __obuf, _Allocator const& __alloc) 258 : __wrapped_(__obuf), __str_(__alloc) { 445 _LIBCPP_HIDE_FROM_ABI basic_osyncstream(streambuf_type* __obuf, allocator_type const& __alloc) 446 : basic_ostream<_CharT, _Traits>(std::addressof(__sb_)), __sb_(__obuf, __alloc) {} 451 …M_ABI basic_osyncstream(basic_ostream<char_type, traits_type>& __os, allocator_type const& __alloc) 452 : 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 | 648 : __base_(allocator_arg_t(), __alloc, __t) {} 653 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 tuple(allocator_arg_t, const _Alloc& __alloc, … 654 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {} 706 tuple(allocator_arg_t, const _Alloc& __alloc, tuple<_Up...>& __t) 707 : __base_(allocator_arg_t(), __alloc, __t) {} 735 tuple(allocator_arg_t, const _Alloc& __alloc, const tuple<_Up...>&& __t) 736 : __base_(allocator_arg_t(), __alloc, std::move(__t)) {} 796 tuple(allocator_arg_t, const _Alloc& __alloc, pair<_U1, _U2>& __p) 797 : __base_(allocator_arg_t(), __alloc, __p) {} 834 tuple(allocator_arg_t, const _Alloc& __alloc, const pair<_U1, _U2>&& __p) [all …]
|
| H A D | __hash_table | 549 _LIBCPP_HIDE_FROM_ABI allocator_type& __alloc() _NOEXCEPT { return __data_.second(); } 550 _LIBCPP_HIDE_FROM_ABI const allocator_type& __alloc() const _NOEXCEPT { return __data_.second(); } 552 …_LIBCPP_HIDE_FROM_ABI void operator()(pointer __p) _NOEXCEPT { __alloc_traits::deallocate(__alloc(… 978 __bucket_list_.get_deleter().__alloc() = std::move(__u.__bucket_list_.get_deleter().__alloc()); 1022 __u.__bucket_list_.get_deleter().__alloc()), 1089 __bucket_list_.get_deleter().__alloc() = __u.__bucket_list_.get_deleter().__alloc(); 1594 allocator_type __alloc(__node_alloc()); 1595 return _NodeHandle(remove(__p).release(), __alloc); 1677 __pointer_allocator& __npa = __bucket_list_.get_deleter().__alloc(); 1977 …std::__swap_allocator(__bucket_list_.get_deleter().__alloc(), __u.__bucket_list_.get_deleter().__a…
|
| H A D | queue | 329 …_LIBCPP_HIDE_FROM_ABI queue(_InputIterator __first, _InputIterator __second, const _Alloc& __alloc) 330 : c(__first, __second, __alloc) {} 335 _LIBCPP_HIDE_FROM_ABI queue(from_range_t, _Range&& __range, const _Alloc& __alloc) 336 : c(from_range, std::forward<_Range>(__range), __alloc) {}
|
| H A D | list | 555 __node_allocator& __alloc = __node_alloc(); 556 __allocation_guard<__node_allocator> __guard(__alloc, 1); 567 __alloc, std::addressof(__guard.__get()->__get_value()), std::forward<_Args>(__args)...); 575 __node_allocator& __alloc = __node_alloc(); 576 __node_alloc_traits::destroy(__alloc, std::addressof(__node->__get_value())); 578 __node_alloc_traits::deallocate(__alloc, __node, 1);
|
| H A D | set | 820 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return __tree_.__alloc(); } 1113 __alloc_traits::select_on_container_copy_construction(__s.__tree_.__alloc())) { 1278 _LIBCPP_HIDE_FROM_ABI allocator_type get_allocator() const _NOEXCEPT { return __tree_.__alloc(); }
|
| H A D | map | 1164 …OM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(__tree_.__alloc()); } 1764 __alloc_traits::select_on_container_copy_construction(__m.__tree_.__alloc())) { 1845 …OM_ABI allocator_type get_allocator() const _NOEXCEPT { return allocator_type(__tree_.__alloc()); }
|
| H A D | __tree | 960 …_LIBCPP_HIDE_FROM_ABI allocator_type __alloc() const _NOEXCEPT { return allocator_type(__node_allo… 1471 if (__a == __t.__alloc()) { 1979 return _NodeHandle(__np, __alloc());
|
| /freebsd-14.2/contrib/llvm-project/libcxx/include/__utility/ |
| H A D | small_buffer.h | 65 _LIBCPP_HIDE_FROM_ABI _Stored* __alloc() { in __alloc() function 83 _Stored* __buffer = __alloc<_Stored>(); in __construct()
|