void IKey::ci_iterator::swap(this_type& other) noexcept { using simstd::swap; swap(info, other.info); swap(sequence, other.sequence); swap(position, other.position); }
void mstring::swap(this_type& other) { using simstd::swap; swap(m_data, other.m_data); swap(m_size, other.m_size); swap(m_capa, other.m_capa); }
void simstd::pvt::list_node_base::swap(list_node_base& a, list_node_base& b) noexcept { // LogTraceLn(); using simstd::swap; swap(a.m_next, b.m_next); swap(a.m_prev, b.m_prev); if (a.m_next == &b) a.m_next = a.m_prev = &a; else a.m_next->m_prev = a.m_prev->m_next = &a; if (b.m_next == &a) b.m_next = b.m_prev = &b; else b.m_next->m_prev = b.m_prev->m_next = &b; // LogDebug(L"&a: %p\n", &a); // LogDebug(L"a.m_next: %p\n", a.m_next); // LogDebug(L"a.m_prev: %p\n", a.m_prev); // LogDebug(L"&b: %p\n", &b); // LogDebug(L"b.m_next: %p\n", b.m_next); // LogDebug(L"b.m_prev: %p\n", b.m_prev); }
mstring& mstring::operator =(this_type&& other) { if (m_data != other.m_data) swap(other); return *this; }
mstring::mstring(this_type&& other) : mstring(nullptr) { swap(other); }
void Hash::swap(Hash & rhs) { using simstd::swap; swap(m_handle, rhs.m_handle); }
void Variant::swap(this_type& other) noexcept { using simstd::swap; swap(static_cast<VARIANT&>(*this), static_cast<VARIANT&>(other)); }
void LazyFrame::swap(LazyFrame& other) { using simstd::swap; swap(m_address, other.m_address); swap(frame, other.frame); }
IKey::ci_iterator::ci_iterator(this_type&& other) noexcept : sequence() , position() { swap(other); }
void WinDacl::attach(PACL & acl) { swap(acl); ::LocalFree(acl); acl = nullptr; }
void WinDacl::swap(WinDacl & rhs) { using simstd::swap; swap(m_dacl, rhs.m_dacl); }
void WinDacl::swap(PACL & acl) { CheckApi(is_valid(acl)); using simstd::swap; swap(m_dacl, acl); }
void WinDacl::detach(PACL & acl) { acl = WinDacl::create(64); using simstd::swap; swap(m_dacl, acl); }