annotate DEPENDENCIES/generic/include/boost/intrusive/detail/equal_to_value.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents f46d142149f5
children
rev   line source
Chris@102 1 /////////////////////////////////////////////////////////////////////////////
Chris@102 2 //
Chris@102 3 // (C) Copyright Ion Gaztanaga 2014-2014
Chris@102 4 //
Chris@102 5 // Distributed under the Boost Software License, Version 1.0.
Chris@102 6 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@102 7 // http://www.boost.org/LICENSE_1_0.txt)
Chris@102 8 //
Chris@102 9 // See http://www.boost.org/libs/intrusive for documentation.
Chris@102 10 //
Chris@102 11 /////////////////////////////////////////////////////////////////////////////
Chris@102 12
Chris@102 13 #ifndef BOOST_INTRUSIVE_DETAIL_EQUAL_TO_VALUE_HPP
Chris@102 14 #define BOOST_INTRUSIVE_DETAIL_EQUAL_TO_VALUE_HPP
Chris@102 15
Chris@102 16 #ifndef BOOST_CONFIG_HPP
Chris@102 17 # include <boost/config.hpp>
Chris@102 18 #endif
Chris@102 19
Chris@102 20 #if defined(BOOST_HAS_PRAGMA_ONCE)
Chris@102 21 # pragma once
Chris@102 22 #endif
Chris@102 23
Chris@102 24 namespace boost {
Chris@102 25 namespace intrusive {
Chris@102 26 namespace detail {
Chris@102 27
Chris@102 28 //This functor compares a stored value
Chris@102 29 //and the one passed as an argument
Chris@102 30 template<class ConstReference>
Chris@102 31 class equal_to_value
Chris@102 32 {
Chris@102 33 ConstReference t_;
Chris@102 34
Chris@102 35 public:
Chris@102 36 equal_to_value(ConstReference t)
Chris@102 37 : t_(t)
Chris@102 38 {}
Chris@102 39
Chris@102 40 bool operator()(ConstReference t)const
Chris@102 41 { return t_ == t; }
Chris@102 42 };
Chris@102 43
Chris@102 44 } //namespace detail{
Chris@102 45 } //namespace intrusive{
Chris@102 46 } //namespace boost{
Chris@102 47
Chris@102 48 #endif //BOOST_INTRUSIVE_DETAIL_EQUAL_TO_VALUE_HPP