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_EQUAL_TO_HPP_INCLUDED
0002 #define BOOST_SMART_PTR_OWNER_EQUAL_TO_HPP_INCLUDED
0003 
0004 // Copyright 2020 Peter Dimov
0005 // Distributed under the Boost Software License, Version 1.0.
0006 // https://www.boost.org/LICENSE_1_0.txt
0007 
0008 namespace boost
0009 {
0010 
0011 template<class T = void> struct owner_equal_to
0012 {
0013     typedef bool result_type;
0014     typedef T first_argument_type;
0015     typedef T second_argument_type;
0016 
0017     template<class U, class V> bool operator()( U const & u, V const & v ) const noexcept
0018     {
0019         return u.owner_equals( v );
0020     }
0021 };
0022 
0023 } // namespace boost
0024 
0025 #endif  // #ifndef BOOST_SMART_PTR_OWNER_EQUAL_TO_HPP_INCLUDED