Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:08:51

0001 #ifndef BOOST_SMART_PTR_OWNER_LESS_HPP_INCLUDED
0002 #define BOOST_SMART_PTR_OWNER_LESS_HPP_INCLUDED
0003 
0004 //
0005 //  owner_less.hpp
0006 //
0007 //  Copyright (c) 2008 Frank Mori Hess
0008 //  Copyright (c) 2016 Peter Dimov
0009 //
0010 //  Distributed under the Boost Software License, Version 1.0. (See
0011 //  accompanying file LICENSE_1_0.txt or copy at
0012 //  http://www.boost.org/LICENSE_1_0.txt)
0013 //
0014 //  See http://www.boost.org/libs/smart_ptr/ for documentation.
0015 //
0016 
0017 namespace boost
0018 {
0019 
0020 template<class T = void> struct owner_less
0021 {
0022     typedef bool result_type;
0023     typedef T first_argument_type;
0024     typedef T second_argument_type;
0025 
0026     template<class U, class V> bool operator()( U const & u, V const & v ) const noexcept
0027     {
0028         return u.owner_before( v );
0029     }
0030 };
0031 
0032 } // namespace boost
0033 
0034 #endif  // #ifndef BOOST_SMART_PTR_OWNER_LESS_HPP_INCLUDED