Home
last modified time | relevance | path

Searched refs:__other (Results 1 – 25 of 53) sorted by relevance

123

/freebsd/contrib/llvm-project/libcxx/include/__stop_token/
H A Dintrusive_shared_ptr.h54 _LIBCPP_HIDE_FROM_ABI __intrusive_shared_ptr(const __intrusive_shared_ptr& __other) noexcept in __intrusive_shared_ptr()
55 : __raw_ptr_(__other.__raw_ptr_) { in __intrusive_shared_ptr()
60 _LIBCPP_HIDE_FROM_ABI __intrusive_shared_ptr(__intrusive_shared_ptr&& __other) noexcept in __intrusive_shared_ptr()
61 : __raw_ptr_(__other.__raw_ptr_) { in __intrusive_shared_ptr()
62 __other.__raw_ptr_ = nullptr; in __intrusive_shared_ptr()
65 …_LIBCPP_HIDE_FROM_ABI __intrusive_shared_ptr& operator=(const __intrusive_shared_ptr& __other) noe…
66 if (__other.__raw_ptr_ != __raw_ptr_) {
67 if (__other.__raw_ptr_) {
68 __increment_ref_count(*__other.__raw_ptr_);
73 __raw_ptr_ = __other.__raw_ptr_;
[all …]
H A Dstop_source.h39 …_LIBCPP_HIDE_FROM_ABI stop_source(const stop_source& __other) noexcept : __state_(__other.__state_… in stop_source() argument
45 _LIBCPP_HIDE_FROM_ABI stop_source(stop_source&& __other) noexcept = default;
47 _LIBCPP_HIDE_FROM_ABI stop_source& operator=(const stop_source& __other) noexcept {
49 if (__other.__state_) {
50 __other.__state_->__increment_stop_source_counter();
55 __state_ = __other.__state_;
67 …_LIBCPP_HIDE_FROM_ABI void swap(stop_source& __other) noexcept { __state_.swap(__other.__state_); } in swap() argument
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__memory/
H A Dallocation_guard.h62 _LIBCPP_HIDE_FROM_ABI __allocation_guard(__allocation_guard&& __other) _NOEXCEPT in __allocation_guard()
63 : __alloc_(std::move(__other.__alloc_)), in __allocation_guard()
64 __n_(__other.__n_), in __allocation_guard()
65 __ptr_(__other.__ptr_) { in __allocation_guard()
66 __other.__ptr_ = nullptr; in __allocation_guard()
69 _LIBCPP_HIDE_FROM_ABI __allocation_guard& operator=(const __allocation_guard& __other) = delete;
70 _LIBCPP_HIDE_FROM_ABI __allocation_guard& operator=(__allocation_guard&& __other) _NOEXCEPT {
71 if (std::addressof(__other) != this) {
74 __alloc_ = std::move(__other.__alloc_);
75 __n_ = __other.__n_;
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Dallocation_guard.h61 __allocation_guard& operator=(const __allocation_guard& __other) = delete;
63 …STEXPR_SINCE_CXX26 _LIBCPP_HIDE_FROM_ABI __allocation_guard(__allocation_guard&& __other) _NOEXCEPT in __allocation_guard()
64 : __alloc_(std::move(__other.__alloc_)), in __allocation_guard()
65 __n_(__other.__n_), in __allocation_guard()
66 __ptr_(__other.__ptr_) { in __allocation_guard()
67 __other.__ptr_ = nullptr; in __allocation_guard()
71 operator=(__allocation_guard&& __other) _NOEXCEPT {
72 if (std::addressof(__other) != this) {
75 __alloc_ = std::move(__other.__alloc_);
76 __n_ = __other.__n_;
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__ranges/
H A Dmovable_box.h74 operator=(__movable_box const& __other) noexcept(is_nothrow_copy_constructible_v<_Tp>) in noexcept()
79 if (this != std::addressof(__other)) { in noexcept()
80 if (__other.__has_value()) in noexcept()
81 __val_.emplace(*__other); in noexcept()
93 operator=(__movable_box&& __other) noexcept(is_nothrow_move_constructible_v<_Tp>) { in noexcept()
94 if (this != std::addressof(__other)) { in noexcept()
95 if (__other.__has_value()) in noexcept()
96 __val_.emplace(std::move(*__other)); in noexcept()
211 _LIBCPP_HIDE_FROM_ABI constexpr __movable_box& operator=(__movable_box const& __other) noexcept {
214 if (this != std::addressof(__other)) {
[all …]
H A Dnon_propagating_cache.h62 …_LIBCPP_HIDE_FROM_ABI constexpr __non_propagating_cache(__non_propagating_cache&& __other) noexcept in __non_propagating_cache() argument
64 __other.__value_.reset(); in __non_propagating_cache()
67 …ABI constexpr __non_propagating_cache& operator=(__non_propagating_cache const& __other) noexcept {
68 if (this != std::addressof(__other)) {
74 …FROM_ABI constexpr __non_propagating_cache& operator=(__non_propagating_cache&& __other) noexcept {
76 __other.__value_.reset();
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/__utility/
H A Dexception_guard.h70 _LIBCPP_HIDE_FROM_ABI __exception_guard_exceptions(__exception_guard_exceptions&& __other) in __exception_guard_exceptions()
71 : __rollback_(std::move(__other.__rollback_)), __completed_(__other.__completed_) { in __exception_guard_exceptions()
72 __other.__completed_ = true; in __exception_guard_exceptions()
98 …E_FROM_ABI _LIBCPP_NODEBUG __exception_guard_noexceptions(__exception_guard_noexceptions&& __other) in __exception_guard_noexceptions()
99 : __completed_(__other.__completed_) { in __exception_guard_noexceptions()
100 __other.__completed_ = true; in __exception_guard_noexceptions()
/freebsd/contrib/llvm-project/libcxx/include/
H A D__node_handle122 _LIBCPP_HIDE_FROM_ABI __basic_node_handle(__basic_node_handle&& __other) noexcept
123 : __ptr_(__other.__ptr_), __alloc_(std::move(__other.__alloc_)) {
124 __other.__ptr_ = nullptr;
125 __other.__alloc_ = std::nullopt;
128 _LIBCPP_HIDE_FROM_ABI __basic_node_handle& operator=(__basic_node_handle&& __other) {
131 __alloc_ == __other.__alloc_,
136 __ptr_ = __other.__ptr_;
139 __alloc_ = std::move(__other.__alloc_);
141 __other.__ptr_ = nullptr;
142 __other.__alloc_ = std::nullopt;
[all …]
H A Dsyncstream272 _LIBCPP_HIDE_FROM_ABI basic_syncbuf(basic_syncbuf&& __other)
273 …: __wrapped_(__other.get_wrapped()), __str_(std::move(__other.__str_)), __emit_on_sync_(__other.__…
274 __move_common(__other);
291 _LIBCPP_HIDE_FROM_ABI basic_syncbuf& operator=(basic_syncbuf&& __other) {
297 __wrapped_ = __other.get_wrapped();
298 __str_ = std::move(__other.__str_);
299 __emit_on_sync_ = __other.__emit_on_sync_;
301 __move_common(__other);
306 _LIBCPP_HIDE_FROM_ABI void swap(basic_syncbuf& __other) {
308 …aits<_Allocator>::propagate_on_container_swap::value || get_allocator() == __other.get_allocator(),
[all …]
H A Dany197 _LIBCPP_HIDE_FROM_ABI any(any const& __other) : __h_(nullptr) {
198 if (__other.__h_)
199 __other.__call(_Action::_Copy, this);
202 _LIBCPP_HIDE_FROM_ABI any(any&& __other) _NOEXCEPT : __h_(nullptr) {
203 if (__other.__h_)
204 __other.__call(_Action::_Move, this);
292 …__call(_Action __a, any* __other = nullptr, type_info const* __info = nullptr, const void* __fallb…
294 return __h_(__a, this, __other, __info, __fallback_info);
298 …_Action __a, any* __other = nullptr, type_info const* __info = nullptr, const void* __fallback_inf…
299 return __h_(__a, this, __other, __info, __fallback_info);
[all …]
H A Dscoped_allocator226 …__scoped_allocator_storage(const __scoped_allocator_storage<_OuterA2, _InnerAllocs...>& __other) _…
227 : outer_allocator_type(__other.outer_allocator()),
228 __inner_(__other.inner_allocator()) {}
232 …__scoped_allocator_storage(__scoped_allocator_storage<_OuterA2, _InnerAllocs...>&& __other) _NOEXC…
233 : outer_allocator_type(std::move(__other.outer_allocator())),
234 __inner_(std::move(__other.inner_allocator())) {}
276 …_FROM_ABI __scoped_allocator_storage(const __scoped_allocator_storage<_OuterA2>& __other) _NOEXCEPT
277 : outer_allocator_type(__other.outer_allocator()) {}
280 …_LIBCPP_HIDE_FROM_ABI __scoped_allocator_storage(__scoped_allocator_storage<_OuterA2>&& __other) _…
281 : outer_allocator_type(std::move(__other.outer_allocator())) {}
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__utility/
H A Dexception_guard.h71 __exception_guard_exceptions(__exception_guard_exceptions&& __other) in __exception_guard_exceptions()
73 : __rollback_(std::move(__other.__rollback_)), __completed_(__other.__completed_) { in __exception_guard_exceptions()
74 __other.__completed_ = true; in __exception_guard_exceptions()
102 __exception_guard_noexceptions(__exception_guard_noexceptions&& __other) in __exception_guard_noexceptions()
104 : __completed_(__other.__completed_) { in __exception_guard_noexceptions()
105 __other.__completed_ = true; in __exception_guard_noexceptions()
/freebsd/contrib/llvm-project/libcxx/include/__mdspan/
H A Dlayout_right.h87 mapping(const mapping<_OtherExtents>& __other) noexcept in requires()
88 : __extents_(__other.extents()) { in requires()
92 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()), in requires()
99 mapping(const layout_left::mapping<_OtherExtents>& __other) noexcept in mapping() argument
100 : __extents_(__other.extents()) { in mapping()
108 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()), in mapping()
115 mapping(const layout_stride::mapping<_OtherExtents>& __other) noexcept in requires()
116 : __extents_(__other.extents()) { in requires()
122 … if (static_cast<_CommonType>(stride(__r)) != static_cast<_CommonType>(__other.stride(__r))) in requires()
128 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()), in requires()
H A Dlayout_left.h87 mapping(const mapping<_OtherExtents>& __other) noexcept in requires()
88 : __extents_(__other.extents()) { in requires()
92 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()), in requires()
99 mapping(const layout_right::mapping<_OtherExtents>& __other) noexcept in mapping() argument
100 : __extents_(__other.extents()) { in mapping()
108 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()), in mapping()
115 mapping(const layout_stride::mapping<_OtherExtents>& __other) noexcept in requires()
116 : __extents_(__other.extents()) { in requires()
122 … if (static_cast<_CommonType>(stride(__r)) != static_cast<_CommonType>(__other.stride(__r))) in requires()
128 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()), in requires()
H A Dlayout_stride.h232 mapping(const _StridedLayoutMapping& __other) noexcept in requires()
233 : __extents_(__other.extents()), __strides_([&]<size_t... _Pos>(index_sequence<_Pos...>) { in requires()
237 static_cast<index_type>(__other.stride(_Pos))...}; in requires()
246 …return ((static_cast<index_type>(__other.stride(_Pos)) > static_cast<index_type>(0)) && ... && tru…
251 __mdspan_detail::__is_representable_as<index_type>(__other.required_span_size()),
253 _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(static_cast<index_type>(0) == __offset(__other),
/freebsd/contrib/llvm-project/libcxx/include/__thread/
H A Djthread.h72 _LIBCPP_HIDE_FROM_ABI jthread& operator=(jthread&& __other) noexcept {
73 if (this != &__other) {
78 __stop_source_ = std::move(__other.__stop_source_);
79 __thread_ = std::move(__other.__thread_);
86 _LIBCPP_HIDE_FROM_ABI void swap(jthread& __other) noexcept { in swap() argument
87 std::swap(__stop_source_, __other.__stop_source_); in swap()
88 std::swap(__thread_, __other.__thread_); in swap()
/freebsd/contrib/llvm-project/libcxx/include/__iterator/
H A Dcommon_iterator.h80 _LIBCPP_HIDE_FROM_ABI constexpr common_iterator(const common_iterator<_I2, _S2>& __other) in common_iterator() argument
83 …!__other.__hold_.valueless_by_exception(), "Attempted to construct from a valueless common_iterato… in common_iterator()
84 if (__other.__hold_.index() == 0) in common_iterator()
85 … return variant<_Iter, _Sent>{in_place_index<0>, std::__unchecked_get<0>(__other.__hold_)}; in common_iterator()
86 return variant<_Iter, _Sent>{in_place_index<1>, std::__unchecked_get<1>(__other.__hold_)}; in common_iterator()
92 _LIBCPP_HIDE_FROM_ABI common_iterator& operator=(const common_iterator<_I2, _S2>& __other) {
94 …!__other.__hold_.valueless_by_exception(), "Attempted to assign from a valueless common_iterator");
97 auto __other_idx = __other.__hold_.index();
101 std::__unchecked_get<0>(__hold_) = std::__unchecked_get<0>(__other.__hold_);
103 std::__unchecked_get<1>(__hold_) = std::__unchecked_get<1>(__other.__hold_);
[all …]
H A Dcounted_iterator.h90 _LIBCPP_HIDE_FROM_ABI constexpr counted_iterator(const counted_iterator<_I2>& __other)
91 : __current_(__other.__current_), __count_(__other.__count_) {}
95 …_LIBCPP_HIDE_FROM_ABI constexpr counted_iterator& operator=(const counted_iterator<_I2>& __other) {
96 __current_ = __other.__current_;
97 __count_ = __other.__count_;
/freebsd/contrib/llvm-project/libcxx/include/__algorithm/
H A Dranges_remove.h41 auto __pred = [&](auto&& __other) -> bool { return __value == __other; };
50 auto __pred = [&](auto&& __other) -> bool { return __value == __other; };
/freebsd/contrib/llvm-project/libcxx/src/support/runtime/
H A Dexception_pointer_msvc.ipp29 exception_ptr::exception_ptr(const exception_ptr& __other) noexcept { __ExceptionPtrCopy(this, &__o…
30 exception_ptr& exception_ptr::operator=(const exception_ptr& __other) noexcept {
31 __ExceptionPtrAssign(this, &__other);
/freebsd/contrib/llvm-project/libcxx/include/__flat_set/
H A Dflat_multiset.h120 _LIBCPP_HIDE_FROM_ABI flat_multiset(flat_multiset&& __other) noexcept( in flat_multiset() argument
125 : __keys_(std::move(__other.__keys_)), __compare_(std::move(__other.__compare_)) { in flat_multiset()
126 __other.clear(); in flat_multiset()
129 __other.clear();
224 _LIBCPP_HIDE_FROM_ABI flat_multiset(const flat_multiset& __other, const _Allocator& __alloc) in flat_multiset() argument
225 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __other.__keys_)), in flat_multiset()
226 __compare_(__other.__compare_) {} in flat_multiset()
230 _LIBCPP_HIDE_FROM_ABI flat_multiset(flat_multiset&& __other, const _Allocator& __alloc) in flat_multiset() argument
234 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, std::move(__other.__keys_))), in flat_multiset()
235 __compare_(std::move(__other.__compare_)) { in flat_multiset()
[all …]
H A Dflat_set.h116 _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_set(flat_set&& __other) noexcept( in flat_set() argument
121 : __keys_(std::move(__other.__keys_)), __compare_(std::move(__other.__compare_)) { in flat_set()
122 __other.clear(); in flat_set()
125 __other.clear();
229 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_set(const flat_set& __other, const _Alloc… in flat_set() argument
230 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, __other.__keys_)), in flat_set()
231 __compare_(__other.__compare_) {} in flat_set()
235 …_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 flat_set(flat_set&& __other, const _Allocator&… in flat_set() argument
239 : __keys_(std::make_obj_using_allocator<container_type>(__alloc, std::move(__other.__keys_))), in flat_set()
240 __compare_(std::move(__other.__compare_)) { in flat_set()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/experimental/
H A Dmemory88 …_LIBCPP_HIDE_FROM_ABI constexpr observer_ptr(observer_ptr<_W2> __other) noexcept : __ptr_(__other.…
101 _LIBCPP_HIDE_FROM_ABI constexpr void swap(observer_ptr& __other) noexcept {
102 observer_ptr __tmp = __other;
103 __other = *this;
/freebsd/contrib/llvm-project/libcxx/include/__flat_map/
H A Dflat_multimap.h150 _LIBCPP_HIDE_FROM_ABI flat_multimap(flat_multimap&& __other) noexcept( in flat_multimap() argument
156 : __containers_(std::move(__other.__containers_)), __compare_(std::move(__other.__compare_)) { in flat_multimap()
157 __other.clear(); in flat_multimap()
160 __other.clear();
171 _LIBCPP_HIDE_FROM_ABI flat_multimap(const flat_multimap& __other, const _Allocator& __alloc) in flat_multimap() argument
174 __other.__containers_.keys,
175 __other.__containers_.values,
176 __other.__compare_) {}
180 _LIBCPP_HIDE_FROM_ABI flat_multimap(flat_multimap&& __other, const _Allocator& __alloc) in flat_multimap() argument
186 std::move(__other.__containers_.keys),
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__expected/
H A Dexpected.h292 _LIBCPP_HIDE_FROM_ABI constexpr explicit __repr(bool __has_val, _OtherUnion&& __other)
295 [&] { return __make_union(__has_val, std::forward<_OtherUnion>(__other)); }),
370 …LIBCPP_HIDE_FROM_ABI static constexpr __union_t __make_union(bool __has_val, _OtherUnion&& __other)
374 return __union_t(in_place, std::forward<_OtherUnion>(__other).__val_);
376 return __union_t(unexpect, std::forward<_OtherUnion>(__other).__unex_);
384 _LIBCPP_HIDE_FROM_ABI static constexpr __repr __make_repr(bool __has_val, _OtherUnion&& __other)
388 return __repr(in_place, std::forward<_OtherUnion>(__other).__val_);
390 return __repr(unexpect, std::forward<_OtherUnion>(__other).__unex_);
418 _LIBCPP_HIDE_FROM_ABI constexpr explicit __expected_base(bool __has_val, _OtherUnion&& __other)
421 [&] { return __make_repr(__has_val, std::forward<_OtherUnion>(__other)); }) {}
[all …]

123