Add noexcept_if to tree::swap

This commit is contained in:
Ion Gaztañaga
2018-09-15 01:18:27 +02:00
parent 7cba84ca97
commit 5ab5c7de63

View File

@@ -1436,6 +1436,8 @@ class tree
{ return !(x < y); }
BOOST_CONTAINER_FORCEINLINE friend void swap(tree& x, tree& y)
BOOST_NOEXCEPT_IF( allocator_traits_type::is_always_equal::value
&& boost::container::dtl::is_nothrow_swappable<Compare>::value )
{ x.swap(y); }
};