mirror of
https://github.com/boostorg/unordered.git
synced 2025-05-12 14:01:43 +00:00
Remove unnecessary move support
This commit is contained in:
parent
fe439890e8
commit
6984e6a4f2
@ -179,17 +179,6 @@ namespace test
|
|||||||
detail::tracker.allocator_ref();
|
detail::tracker.allocator_ref();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
cxx11_allocator_base(cxx11_allocator_base&& x) BOOST_NOEXCEPT
|
|
||||||
{
|
|
||||||
tag_ = x.tag_;
|
|
||||||
selected_ = x.selected_;
|
|
||||||
|
|
||||||
x.tag_ = -1;
|
|
||||||
x.selected_ = -1;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
~cxx11_allocator_base() { detail::tracker.allocator_unref(); }
|
~cxx11_allocator_base() { detail::tracker.allocator_unref(); }
|
||||||
|
|
||||||
cxx11_allocator_base& operator=(cxx11_allocator_base const& x)
|
cxx11_allocator_base& operator=(cxx11_allocator_base const& x)
|
||||||
@ -199,17 +188,6 @@ namespace test
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
cxx11_allocator_base& operator=(
|
|
||||||
cxx11_allocator_base&& x) BOOST_NOEXCEPT
|
|
||||||
{
|
|
||||||
tag_ = x.tag_;
|
|
||||||
selected_ = x.selected_;
|
|
||||||
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
pointer address(reference r) { return pointer(&r); }
|
pointer address(reference r) { return pointer(&r); }
|
||||||
|
|
||||||
const_pointer address(const_reference r) { return const_pointer(&r); }
|
const_pointer address(const_reference r) { return const_pointer(&r); }
|
||||||
@ -300,14 +278,6 @@ namespace test
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_NOEXCEPT
|
|
||||||
{
|
|
||||||
cxx11_allocator_base<T>::operator=(static_cast<cxx11_allocator&&>(x));
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// When not propagating swap, allocators are always equal
|
// When not propagating swap, allocators are always equal
|
||||||
// to avoid undefined behaviour.
|
// to avoid undefined behaviour.
|
||||||
bool operator==(cxx11_allocator const& x) const
|
bool operator==(cxx11_allocator const& x) const
|
||||||
@ -357,14 +327,6 @@ namespace test
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
cxx11_allocator& operator=(cxx11_allocator&& x) BOOST_NOEXCEPT
|
|
||||||
{
|
|
||||||
cxx11_allocator_base<T>::operator=(static_cast<cxx11_allocator&&>(x));
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// When not propagating swap, allocators are always equal
|
// When not propagating swap, allocators are always equal
|
||||||
// to avoid undefined behaviour.
|
// to avoid undefined behaviour.
|
||||||
bool operator==(cxx11_allocator const& x) const
|
bool operator==(cxx11_allocator const& x) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user