1 #ifndef BOOST_INTRUSIVE_DETAIL_VALUE_FUNCTORS_HPP
2 #define BOOST_INTRUSIVE_DETAIL_VALUE_FUNCTORS_HPP
3 ///////////////////////////////////////////////////////////////////////////////
4 //
5 // (C) Copyright Ion Gaztanaga 2017-2021. Distributed under the Boost
6 // Software License, Version 1.0. (See accompanying file
7 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // See http://www.boost.org/libs/intrusive for documentation.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12 
13 #ifndef BOOST_CONFIG_HPP
14 #  include <boost/config.hpp>
15 #endif
16 
17 #if defined(BOOST_HAS_PRAGMA_ONCE)
18 #  pragma once
19 #endif
20 
21 namespace boost {
22 namespace intrusive {
23 
24 //Functors for member algorithm defaults
25 template<class ValueType>
26 struct value_less
27 {
operator ()boost::intrusive::value_less28    bool operator()(const ValueType &a, const ValueType &b) const
29       {  return a < b;  }
30 };
31 
32 template<class ValueType>
33 struct value_equal
34 {
operator ()boost::intrusive::value_equal35    bool operator()(const ValueType &a, const ValueType &b) const
36       {  return a == b;  }
37 };
38 
39 }  //namespace intrusive {
40 }  //namespace boost {
41 
42 #endif   //BOOST_INTRUSIVE_DETAIL_VALUE_FUNCTORS_HPP
43