]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/intrusive/detail/value_functors.hpp
dced9b081a5a507f61f3dfd424da0d78405b2ca8
[ceph.git] / ceph / src / boost / boost / intrusive / detail / value_functors.hpp
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 {
28 bool operator()(const ValueType &a, const ValueType &b) const
29 { return a < b; }
30 };
31
32 template<class ValueType>
33 struct value_equal
34 {
35 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