Chris@102: ///////////////////////////////////////////////////////////////////////////// Chris@102: // Chris@102: // (C) Copyright Ion Gaztanaga 2014-2014 Chris@102: // Chris@102: // Distributed under the Boost Software License, Version 1.0. Chris@102: // (See accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: // Chris@102: // See http://www.boost.org/libs/intrusive for documentation. Chris@102: // Chris@102: ///////////////////////////////////////////////////////////////////////////// Chris@102: Chris@102: #ifndef BOOST_INTRUSIVE_DETAIL_EQUAL_TO_VALUE_HPP Chris@102: #define BOOST_INTRUSIVE_DETAIL_EQUAL_TO_VALUE_HPP Chris@102: Chris@102: #ifndef BOOST_CONFIG_HPP Chris@102: # include Chris@102: #endif Chris@102: Chris@102: #if defined(BOOST_HAS_PRAGMA_ONCE) Chris@102: # pragma once Chris@102: #endif Chris@102: Chris@102: namespace boost { Chris@102: namespace intrusive { Chris@102: namespace detail { Chris@102: Chris@102: //This functor compares a stored value Chris@102: //and the one passed as an argument Chris@102: template Chris@102: class equal_to_value Chris@102: { Chris@102: ConstReference t_; Chris@102: Chris@102: public: Chris@102: equal_to_value(ConstReference t) Chris@102: : t_(t) Chris@102: {} Chris@102: Chris@102: bool operator()(ConstReference t)const Chris@102: { return t_ == t; } Chris@102: }; Chris@102: Chris@102: } //namespace detail{ Chris@102: } //namespace intrusive{ Chris@102: } //namespace boost{ Chris@102: Chris@102: #endif //BOOST_INTRUSIVE_DETAIL_EQUAL_TO_VALUE_HPP