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
+2
View File
@@ -1614,6 +1614,7 @@ class flat_map
//!
//! <b>Complexity</b>: Constant.
BOOST_CONTAINER_FORCEINLINE friend void swap(flat_map& x, flat_map& y)
BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT(x.swap(y)))
{ x.swap(y); }
#ifndef BOOST_CONTAINER_DOXYGEN_INVOKED
@@ -2955,6 +2956,7 @@ class flat_multimap
//!
//! <b>Complexity</b>: Constant.
BOOST_CONTAINER_FORCEINLINE friend void swap(flat_multimap& x, flat_multimap& y)
BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT(x.swap(y)))
{ x.swap(y); }
};