forked from boostorg/smart_ptr
Add noexcept to owner_less, owner_equal_to
This commit is contained in:
@ -5,6 +5,8 @@
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@ -14,7 +16,7 @@ template<class T = void> struct owner_equal_to
|
||||
typedef T first_argument_type;
|
||||
typedef T second_argument_type;
|
||||
|
||||
template<class U, class V> bool operator()( U const & u, V const & v ) const
|
||||
template<class U, class V> bool operator()( U const & u, V const & v ) const BOOST_NOEXCEPT
|
||||
{
|
||||
return u.owner_equals( v );
|
||||
}
|
||||
|
@ -14,6 +14,8 @@
|
||||
// See http://www.boost.org/libs/smart_ptr/ for documentation.
|
||||
//
|
||||
|
||||
#include <boost/config.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@ -23,7 +25,7 @@ template<class T = void> struct owner_less
|
||||
typedef T first_argument_type;
|
||||
typedef T second_argument_type;
|
||||
|
||||
template<class U, class V> bool operator()( U const & u, V const & v ) const
|
||||
template<class U, class V> bool operator()( U const & u, V const & v ) const BOOST_NOEXCEPT
|
||||
{
|
||||
return u.owner_before( v );
|
||||
}
|
||||
|
Reference in New Issue
Block a user