mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 13:34:30 +02:00
Use #include <boost/intrusive/detail/value_functors.hpp> instead of own value_functor.hpp
This commit is contained in:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user