Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/libcxx/include/__ranges/
H A Dcopyable_box.h67 constexpr __copyable_box& operator=(__copyable_box const& __other)
70 if (this != std::addressof(__other)) { in noexcept()
71 if (__other.__has_value()) __val_.emplace(*__other); in noexcept()
81 constexpr __copyable_box& operator=(__copyable_box&& __other)
84 if (this != std::addressof(__other)) { in noexcept()
85 if (__other.__has_value()) __val_.emplace(std::move(*__other)); in noexcept()
149 if (this != std::addressof(__other)) {
151 std::construct_at(std::addressof(__val_), __other.__val_);
157 constexpr __copyable_box& operator=(__copyable_box&& __other) noexcept {
159 if (this != std::addressof(__other)) {
[all …]
H A Dnon_propagating_cache.h65 constexpr __non_propagating_cache(__non_propagating_cache&& __other) noexcept in __non_propagating_cache() argument
68 __other.__value_.reset(); in __non_propagating_cache()
72 constexpr __non_propagating_cache& operator=(__non_propagating_cache const& __other) noexcept {
73 if (this != std::addressof(__other)) {
80 constexpr __non_propagating_cache& operator=(__non_propagating_cache&& __other) noexcept {
82 __other.__value_.reset();
/openbsd/gnu/llvm/libcxx/include/__utility/
H A Dexception_guard.h70 __exception_guard_exceptions(__exception_guard_exceptions&& __other) in __exception_guard_exceptions()
72 : __rollback_(std::move(__other.__rollback_)), __completed_(__other.__completed_) { in __exception_guard_exceptions()
73 __other.__completed_ = true; in __exception_guard_exceptions()
104 __exception_guard_noexceptions(__exception_guard_noexceptions&& __other)
106 : __completed_(__other.__completed_) {
107 __other.__completed_ = true;
/openbsd/gnu/llvm/libcxx/include/
H A D__node_handle139 : __ptr_(__other.__ptr_),
140 __alloc_(_VSTD::move(__other.__alloc_))
142 __other.__ptr_ = nullptr;
143 __other.__alloc_ = _VSTD::nullopt;
152 __alloc_ == __other.__alloc_,
157 __ptr_ = __other.__ptr_;
161 __alloc_ = _VSTD::move(__other.__alloc_);
163 __other.__ptr_ = nullptr;
164 __other.__alloc_ = _VSTD::nullopt;
184 swap(__ptr_, __other.__ptr_);
[all …]
H A Dany201 any(any const & __other) : __h_(nullptr)
203 if (__other.__h_) __other.__call(_Action::_Copy, this);
207 any(any && __other) _NOEXCEPT : __h_(nullptr)
209 if (__other.__h_) __other.__call(_Action::_Move, this);
320 void * __call(_Action __a, any * __other = nullptr,
324 return __h_(__a, this, __other, __info, __fallback_info);
328 void * __call(_Action __a, any * __other = nullptr,
367 __copy(*__this, *__other);
370 __move(const_cast<any &>(*__this), *__other);
451 __copy(*__this, *__other);
[all …]
H A Dscoped_allocator245 : outer_allocator_type(__other.outer_allocator()),
246 __inner_(__other.inner_allocator()) {}
255 : outer_allocator_type(_VSTD::move(__other.outer_allocator())),
256 __inner_(_VSTD::move(__other.inner_allocator())) {}
323 const __scoped_allocator_storage<_OuterA2>& __other) _NOEXCEPT
324 : outer_allocator_type(__other.outer_allocator()) {}
332 __scoped_allocator_storage<_OuterA2>&& __other) _NOEXCEPT
333 : outer_allocator_type(_VSTD::move(__other.outer_allocator())) {}
461 // scoped_allocator_adaptor(const scoped_allocator_adaptor& __other) = default;
469 : base(__other) {}
[all …]
H A Dspan266 constexpr span(const span<_OtherElementType, _Extent>& __other)
267 : __data_{__other.data()} {}
271 constexpr explicit span(const span<_OtherElementType, dynamic_extent>& __other) noexcept
272 …: __data_{__other.data()} { _LIBCPP_ASSERT(_Extent == __other.size(), "size mismatch in span's con…
442 constexpr span(const span<_OtherElementType, _OtherExtent>& __other) noexcept
443 : __data_{__other.data()}, __size_{__other.size()} {}
/openbsd/gnu/llvm/libcxx/include/__iterator/
H A Dcommon_iterator.h72 constexpr common_iterator(const common_iterator<_I2, _S2>& __other) in common_iterator() argument
75 if (__other.__hold_.index() == 0) in common_iterator()
76 return variant<_Iter, _Sent>{in_place_index<0>, _VSTD::__unchecked_get<0>(__other.__hold_)}; in common_iterator()
77 return variant<_Iter, _Sent>{in_place_index<1>, _VSTD::__unchecked_get<1>(__other.__hold_)}; in common_iterator()
83 common_iterator& operator=(const common_iterator<_I2, _S2>& __other) {
84 …_LIBCPP_ASSERT(!__other.__hold_.valueless_by_exception(), "Attempted to assign from a valueless co…
87 auto __other_idx = __other.__hold_.index();
91 _VSTD::__unchecked_get<0>(__hold_) = _VSTD::__unchecked_get<0>(__other.__hold_);
93 _VSTD::__unchecked_get<1>(__hold_) = _VSTD::__unchecked_get<1>(__other.__hold_);
97 __hold_.template emplace<1>(_VSTD::__unchecked_get<1>(__other.__hold_));
[all …]
H A Dcounted_iterator.h92 constexpr counted_iterator(const counted_iterator<_I2>& __other)
93 : __current_(__other.__current_), __count_(__other.__count_) {}
98 constexpr counted_iterator& operator=(const counted_iterator<_I2>& __other) {
99 __current_ = __other.__current_;
100 __count_ = __other.__count_;
H A Dbounded_iter.h59 …_FROM_ABI _LIBCPP_CONSTEXPR __bounded_iter(__bounded_iter<_OtherIterator> const& __other) _NOEXCEPT in __bounded_iter()
60 : __current_(__other.__current_), in __bounded_iter()
61 __begin_(__other.__begin_), in __bounded_iter()
62 __end_(__other.__end_) {} in __bounded_iter()
/openbsd/gnu/gcc/libstdc++-v3/include/bits/
H A Dlocale_classes.h132 locale(const locale& __other) throw(); in _GLIBCXX_BEGIN_NAMESPACE()
183 locale(const locale& __other, _Facet* __f); in _GLIBCXX_BEGIN_NAMESPACE()
197 operator=(const locale& __other) throw(); in _GLIBCXX_BEGIN_NAMESPACE()
213 combine(const locale& __other) const; in _GLIBCXX_BEGIN_NAMESPACE()
231 operator==(const locale& __other) const throw (); in _GLIBCXX_BEGIN_NAMESPACE()
240 operator!=(const locale& __other) const throw () in _GLIBCXX_BEGIN_NAMESPACE()
241 { return !(this->operator==(__other)); } in _GLIBCXX_BEGIN_NAMESPACE()
565 locale::locale(const locale& __other, _Facet* __f) in locale() argument
567 _M_impl = new _Impl(*__other._M_impl, 1); in locale()
H A Dpostypes.h188 operator-(const fpos& __other) const
189 { return _M_off - __other._M_off; }
/openbsd/gnu/lib/libstdc++/libstdc++/include/bits/
H A Dlocale_classes.h97 locale(const locale& __other) throw();
107 locale(const locale& __other, _Facet* __f);
112 operator=(const locale& __other) throw();
116 combine(const locale& __other) const;
123 operator==(const locale& __other) const throw ();
126 operator!=(const locale& __other) const throw ()
127 { return !(this->operator==(__other)); }
302 locale::locale(const locale& __other, _Facet* __f) in locale() argument
304 _M_impl = new _Impl(*__other._M_impl, 1); in locale()
/openbsd/gnu/llvm/libcxx/include/__algorithm/
H A Dranges_remove.h40 auto __pred = [&](auto&& __other) { return __value == __other; };
49 auto __pred = [&](auto&& __other) { return __value == __other; };
/openbsd/gnu/lib/libstdc++/libstdc++/src/
H A Dlocale.cc165 locale::locale(const locale& __other) throw() in locale() argument
166 { (_M_impl = __other._M_impl)->_M_add_reference(); } in locale()
311 locale::operator=(const locale& __other) throw() in operator =() argument
313 __other._M_impl->_M_add_reference(); in operator =()
315 _M_impl = __other._M_impl; in operator =()
320 locale::global(const locale& __other) in global() argument
325 __other._M_impl->_M_add_reference(); in global()
326 _S_global = __other._M_impl; in global()
329 setlocale(LC_ALL, __other.name().c_str()); in global()
/openbsd/gnu/llvm/libcxx/src/support/runtime/
H A Dexception_pointer_msvc.ipp30 exception_ptr::exception_ptr(const exception_ptr& __other) noexcept {
31 __ExceptionPtrCopy(this, &__other);
33 exception_ptr& exception_ptr::operator=(const exception_ptr& __other) noexcept {
34 __ExceptionPtrAssign(this, &__other);
/openbsd/gnu/gcc/libstdc++-v3/src/
H A Dlocale.cc77 locale::locale(const locale& __other) throw() in locale() argument
78 : _M_impl(__other._M_impl) in locale()
112 locale::operator=(const locale& __other) throw() in operator =() argument
114 __other._M_impl->_M_add_reference(); in operator =()
116 _M_impl = __other._M_impl; in operator =()
H A Dlocale_init.cc221 locale::global(const locale& __other) in global() argument
228 __other._M_impl->_M_add_reference(); in global()
229 _S_global = __other._M_impl; in global()
230 const string __other_name = __other.name(); in global()
/openbsd/gnu/llvm/libcxx/include/__expected/
H A Dexpected.h121 _LIBCPP_HIDE_FROM_ABI constexpr expected(const expected& __other) in expected() argument
125 : __has_val_(__other.__has_val_) { in expected()
127 std::construct_at(std::addressof(__union_.__val_), __other.__union_.__val_); in expected()
129 std::construct_at(std::addressof(__union_.__unex_), __other.__union_.__unex_); in expected()
139 _LIBCPP_HIDE_FROM_ABI constexpr expected(expected&& __other) in expected() argument
143 : __has_val_(__other.__has_val_) { in expected()
175 expected(const expected<_Up, _OtherErr>& __other) in expected() argument
178 : __has_val_(__other.__has_val_) { in expected()
180 std::construct_at(std::addressof(__union_.__val_), __other.__union_.__val_); in expected()
189 expected(expected<_Up, _OtherErr>&& __other) in expected() argument
[all …]
H A Dunexpected.h94 …_LIBCPP_HIDE_FROM_ABI constexpr void swap(unexpected& __other) noexcept(is_nothrow_swappable_v<_Er…
97 swap(__unex_, __other.__unex_);
/openbsd/gnu/llvm/libcxx/include/__memory_resource/
H A Dmemory_resource.h44 …IDE_FROM_ABI bool is_equal(const memory_resource& __other) const noexcept { return do_is_equal(__o… in is_equal() argument
H A Dunsynchronized_pool_resource.h88 …_LIBCPP_HIDE_FROM_ABI_VIRTUAL bool do_is_equal(const memory_resource& __other) const _NOEXCEPT ove… in do_is_equal() argument
89 return &__other == this; in do_is_equal()
H A Dmonotonic_buffer_resource.h104 …_LIBCPP_HIDE_FROM_ABI_VIRTUAL bool do_is_equal(const memory_resource& __other) const _NOEXCEPT ove… in do_is_equal() argument
105 return this == std::addressof(__other); in do_is_equal()
/openbsd/gnu/llvm/libcxx/src/experimental/
H A Dmemory_resource.cpp65 virtual bool do_is_equal(memory_resource const & __other) const noexcept in do_is_equal()
66 { return &__other == this; } in do_is_equal()
/openbsd/gnu/llvm/libcxx/include/experimental/
H A Dmemory_resource121 bool is_equal(memory_resource const & __other) const _NOEXCEPT
122 { return do_is_equal(__other); }
182 polymorphic_allocator(polymorphic_allocator<_Tp> const & __other) _NOEXCEPT
183 : __res_(__other.resource())
407 bool do_is_equal(memory_resource const & __other) const _NOEXCEPT override {
409 = dynamic_cast<__resource_adaptor_imp const *>(&__other);

12