Use #include <boost/intrusive/detail/value_functors.hpp> instead of own value_functor.hpp

This commit is contained in:
Ion Gaztañaga
2021-01-05 10:10:57 +01:00
parent 482f0911e1
commit cce50a153d

View File

@@ -18,23 +18,13 @@
# pragma once # pragma once
#endif #endif
#include <boost/intrusive/detail/value_functors.hpp>
namespace boost { namespace boost {
namespace container { namespace container {
//Functors for member algorithm defaults using ::boost::intrusive::value_less;
template<class ValueType> using ::boost::intrusive::value_equal;
struct value_less
{
bool operator()(const ValueType &a, const ValueType &b) const
{ return a < b; }
};
template<class ValueType>
struct value_equal
{
bool operator()(const ValueType &a, const ValueType &b) const
{ return a == b; }
};
} //namespace container { } //namespace container {
} //namespace boost { } //namespace boost {