Exemplo n.º 1
0
	void IKey::ci_iterator::swap(this_type& other) noexcept
	{
		using simstd::swap;
		swap(info, other.info);
		swap(sequence, other.sequence);
		swap(position, other.position);
	}
Exemplo n.º 2
0
	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);
	}
Exemplo n.º 3
0
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);
}
Exemplo n.º 4
0
	mstring& mstring::operator =(this_type&& other)
	{
		if (m_data != other.m_data)
			swap(other);
		return *this;
	}
Exemplo n.º 5
0
	mstring::mstring(this_type&& other) :
		mstring(nullptr)
	{
		swap(other);
	}
Exemplo n.º 6
0
	void Hash::swap(Hash & rhs)
	{
		using simstd::swap;
		swap(m_handle, rhs.m_handle);
	}
Exemplo n.º 7
0
	void Variant::swap(this_type& other) noexcept
	{
		using simstd::swap;
		swap(static_cast<VARIANT&>(*this), static_cast<VARIANT&>(other));
	}
Exemplo n.º 8
0
	void LazyFrame::swap(LazyFrame& other)
	{
		using simstd::swap;
		swap(m_address, other.m_address);
		swap(frame, other.frame);
	}
Exemplo n.º 9
0
	IKey::ci_iterator::ci_iterator(this_type&& other) noexcept
		: sequence()
		, position()
	{
		swap(other);
	}
Exemplo n.º 10
0
	void WinDacl::attach(PACL & acl) {
		swap(acl);
		::LocalFree(acl);
		acl = nullptr;
	}
Exemplo n.º 11
0
	void WinDacl::swap(WinDacl & rhs) {
		using simstd::swap;
		swap(m_dacl, rhs.m_dacl);
	}
Exemplo n.º 12
0
	void WinDacl::swap(PACL & acl) {
		CheckApi(is_valid(acl));
		using simstd::swap;
		swap(m_dacl, acl);
	}
Exemplo n.º 13
0
	void WinDacl::detach(PACL & acl) {
		acl = WinDacl::create(64);
		using simstd::swap;
		swap(m_dacl, acl);
	}