mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 11:57:15 +02:00
Remove pointless duplication of move constructor
This commit is contained in:
@ -93,18 +93,13 @@ template <class K, class T, class H, class P, class A> class unordered_map
|
|||||||
|
|
||||||
unordered_map(unordered_map const&);
|
unordered_map(unordered_map const&);
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_USE_MOVE)
|
#if defined(BOOST_UNORDERED_USE_MOVE) || \
|
||||||
|
!defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
unordered_map(BOOST_RV_REF(unordered_map) other)
|
unordered_map(BOOST_RV_REF(unordered_map) other)
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
: table_(other.table_, boost::unordered::detail::move_tag())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#elif !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
unordered_map(unordered_map&& other)
|
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
explicit unordered_map(allocator_type const&);
|
explicit unordered_map(allocator_type const&);
|
||||||
@ -850,18 +845,13 @@ template <class K, class T, class H, class P, class A> class unordered_multimap
|
|||||||
|
|
||||||
unordered_multimap(unordered_multimap const&);
|
unordered_multimap(unordered_multimap const&);
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_USE_MOVE)
|
#if defined(BOOST_UNORDERED_USE_MOVE) || \
|
||||||
|
!defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
unordered_multimap(BOOST_RV_REF(unordered_multimap) other)
|
unordered_multimap(BOOST_RV_REF(unordered_multimap) other)
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
: table_(other.table_, boost::unordered::detail::move_tag())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#elif !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
unordered_multimap(unordered_multimap&& other)
|
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
explicit unordered_multimap(allocator_type const&);
|
explicit unordered_multimap(allocator_type const&);
|
||||||
|
@ -91,18 +91,13 @@ template <class T, class H, class P, class A> class unordered_set
|
|||||||
|
|
||||||
unordered_set(unordered_set const&);
|
unordered_set(unordered_set const&);
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_USE_MOVE)
|
#if defined(BOOST_UNORDERED_USE_MOVE) || \
|
||||||
|
!defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
unordered_set(BOOST_RV_REF(unordered_set) other)
|
unordered_set(BOOST_RV_REF(unordered_set) other)
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
: table_(other.table_, boost::unordered::detail::move_tag())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#elif !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
unordered_set(unordered_set&& other)
|
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
explicit unordered_set(allocator_type const&);
|
explicit unordered_set(allocator_type const&);
|
||||||
@ -576,18 +571,13 @@ template <class T, class H, class P, class A> class unordered_multiset
|
|||||||
|
|
||||||
unordered_multiset(unordered_multiset const&);
|
unordered_multiset(unordered_multiset const&);
|
||||||
|
|
||||||
#if defined(BOOST_UNORDERED_USE_MOVE)
|
#if defined(BOOST_UNORDERED_USE_MOVE) || \
|
||||||
|
!defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
||||||
unordered_multiset(BOOST_RV_REF(unordered_multiset) other)
|
unordered_multiset(BOOST_RV_REF(unordered_multiset) other)
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
: table_(other.table_, boost::unordered::detail::move_tag())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#elif !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
|
|
||||||
unordered_multiset(unordered_multiset&& other)
|
|
||||||
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
|
|
||||||
: table_(other.table_, boost::unordered::detail::move_tag())
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
explicit unordered_multiset(allocator_type const&);
|
explicit unordered_multiset(allocator_type const&);
|
||||||
|
Reference in New Issue
Block a user