Merge branch 'noexcept-swap' of https://github.com/palebedev/container into palebedev-noexcept-swap

This commit is contained in:
Ion Gaztañaga
2021-01-02 00:38:31 +01:00
13 changed files with 34 additions and 8 deletions
+6 -2
View File
@@ -947,7 +947,9 @@ class set
//! <b>Effects</b>: x.swap(y)
//!
//! <b>Complexity</b>: Constant.
friend void swap(set& x, set& y);
friend void swap(set& x, set& y)
BOOST_NOEXCEPT_IF( allocator_traits_type::is_always_equal::value
&& boost::container::dtl::is_nothrow_swappable<Compare>::value );
#endif //#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
};
@@ -1600,7 +1602,9 @@ class multiset
//! <b>Effects</b>: x.swap(y)
//!
//! <b>Complexity</b>: Constant.
friend void swap(multiset& x, multiset& y);
friend void swap(multiset& x, multiset& y)
BOOST_NOEXCEPT_IF( allocator_traits_type::is_always_equal::value
&& boost::container::dtl::is_nothrow_swappable<Compare>::value );
#endif //#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
};