Remove pointless duplication of move constructor

This commit is contained in:
Daniel James
2017-04-20 22:59:00 +01:00
parent de5373413b
commit f3b179d451
2 changed files with 8 additions and 28 deletions

View File

@ -93,18 +93,13 @@ template <class K, class T, class H, class P, class A> class unordered_map
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)
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
: 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
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&);
#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)
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
: 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
explicit unordered_multimap(allocator_type const&);

View File

@ -91,18 +91,13 @@ template <class T, class H, class P, class A> class unordered_set
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)
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
: 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
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&);
#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)
BOOST_NOEXCEPT_IF(table::nothrow_move_constructible)
: 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
explicit unordered_multiset(allocator_type const&);