1 /////////////////////////////////////////////////////////////////////////////
3 // (C) Copyright Ion Gaztanaga 2008
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
9 // See http://www.boost.org/libs/intrusive for documentation.
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef BOOST_INTRUSIVE_PRIORITY_COMPARE_HPP
14 #define BOOST_INTRUSIVE_PRIORITY_COMPARE_HPP
16 #include <boost/intrusive/detail/config_begin.hpp>
17 #include <boost/intrusive/intrusive_fwd.hpp>
25 struct priority_compare
26 : public std::binary_function
<T
, T
, bool>
28 bool operator()(const T
&val
, const T
&val2
) const
30 return priority_order(val
, val2
);
34 } //namespace intrusive
37 #include <boost/intrusive/detail/config_end.hpp>
39 #endif //BOOST_INTRUSIVE_PRIORITY_COMPARE_HPP