1 #ifndef BOOST_SMART_PTR_OWNER_LESS_HPP_INCLUDED
2 #define BOOST_SMART_PTR_OWNER_LESS_HPP_INCLUDED
7 // Copyright (c) 2008 Frank Mori Hess
8 // Copyright (c) 2016 Peter Dimov
10 // Distributed under the Boost Software License, Version 1.0. (See
11 // accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
14 // See http://www.boost.org/libs/smart_ptr/ for documentation.
20 template<class T = void> struct owner_less
22 typedef bool result_type;
23 typedef T first_argument_type;
24 typedef T second_argument_type;
26 template<class U, class V> bool operator()( U const & u, V const & v ) const
28 return u.owner_before( v );
34 #endif // #ifndef BOOST_SMART_PTR_OWNER_LESS_HPP_INCLUDED