fix doc example typo
[boost.git] / boost / intrusive / priority_compare.hpp
blob19d42659b1bf2ceaf8a05d4a794f3ffc3674d210
1 /////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2008
4 //
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)
8 //
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>
19 #include <functional>
21 namespace boost {
22 namespace intrusive {
24 template <class T>
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
35 } //namespace boost
37 #include <boost/intrusive/detail/config_end.hpp>
39 #endif //BOOST_INTRUSIVE_PRIORITY_COMPARE_HPP