1 #ifndef BOOST_CONTAINER_DETAIL_VALUE_FUNCTORS_HPP 2 #define BOOST_CONTAINER_DETAIL_VALUE_FUNCTORS_HPP 3 /////////////////////////////////////////////////////////////////////////////// 4 // 5 // (C) Copyright Ion Gaztanaga 2017-2017. 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/container 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 //Functors for member algorithm defaults 22 template<class ValueType> 23 struct value_less 24 { operator ()value_less25 bool operator()(const ValueType &a, const ValueType &b) const 26 { return a < b; } 27 }; 28 29 template<class ValueType> 30 struct value_equal 31 { operator ()value_equal32 bool operator()(const ValueType &a, const ValueType &b) const 33 { return a == b; } 34 }; 35 36 #endif //BOOST_CONTAINER_DETAIL_VALUE_FUNCTORS_HPP 37