/usr/include/boost/phoenix/bind
Edit: /usr/include/boost/phoenix/bind/bind_function.hpp (1916B)
/*=============================================================================
Copyright (c) 2016 Kohei Takahashi
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#ifndef PHOENIX_BIND_BIND_FUNCTION_HPP
#define PHOENIX_BIND_BIND_FUNCTION_HPP
#include
#if defined(BOOST_PHOENIX_NO_VARIADIC_BIND)
# include
#else
#include
#include
namespace boost { namespace phoenix
{
namespace detail
{
template
struct function_ptr
{
typedef RT result_type;
function_ptr(FP fp_)
: fp(fp_) {}
template
result_type operator()(A&... a) const
{
return fp(a...);
}
bool operator==(function_ptr const& rhs) const
{
return fp == rhs.fp;
}
template
bool operator==(function_ptr const& /*rhs*/) const
{
return false;
}
FP fp;
};
} // namespace boost::phoenix::detail
template
inline typename detail::expression::function_eval<
detail::function_ptr