• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef BOOST_SMART_PTR_OWNER_EQUAL_TO_HPP_INCLUDED
2 #define BOOST_SMART_PTR_OWNER_EQUAL_TO_HPP_INCLUDED
3 
4 // Copyright 2020 Peter Dimov
5 // Distributed under the Boost Software License, Version 1.0.
6 // https://www.boost.org/LICENSE_1_0.txt
7 
8 #include <boost/config.hpp>
9 
10 namespace boost
11 {
12 
13 template<class T = void> struct owner_equal_to
14 {
15     typedef bool result_type;
16     typedef T first_argument_type;
17     typedef T second_argument_type;
18 
operator ()boost::owner_equal_to19     template<class U, class V> bool operator()( U const & u, V const & v ) const BOOST_NOEXCEPT
20     {
21         return u.owner_equals( v );
22     }
23 };
24 
25 } // namespace boost
26 
27 #endif  // #ifndef BOOST_SMART_PTR_OWNER_EQUAL_TO_HPP_INCLUDED
28