mirror of
https://github.com/boostorg/container.git
synced 2025-08-02 14:04:26 +02:00
Add noexcept_if to tree::swap
This commit is contained in:
@@ -1436,6 +1436,8 @@ class tree
|
|||||||
{ return !(x < y); }
|
{ return !(x < y); }
|
||||||
|
|
||||||
BOOST_CONTAINER_FORCEINLINE friend void swap(tree& x, tree& 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); }
|
{ x.swap(y); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user