Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Struct template callable_eval

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Reference

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Struct template callable_eval

boost::proto::context::callable_eval — A BinaryFunction that accepts a Proto expression and a callable context and calls the context with the expression tag and children as arguments, effectively fanning the expression out.

Synopsis

// In header: <boost/proto/context/callable.hpp>
template<typename Expr, typename Context> 
struct callable_eval {
  // types
  typedef typename boost::result_of<
    Context(
      typename Expr::proto_tag,
      typename proto::result_of::child_c<0>::type,
      ...
      typename proto::result_of::child_c<N>::type,
    )>::type
   result_type;
  // public member functions
  result_type operator()(Expr &, Context &) const;
};

Description

<proto::context::callable_eval<>>требует, чтобы<Context>было полиморфным. Объект, на который можно ссылаться с тегом<Expr>и детьми в качестве выражений:

context(typename Expr::proto_tag(), proto::child_c<0>(expr), ... proto::child_c<N>(expr))

callable_eval public member functions

  1. <
    result_typeoperator()(Expr&expr,Context&context)const;
    >

    Параметры:

    <context>

    Призывной контекст оценки

    <expr>

    Текущее выражение

    Возвращается:

    < context(typename Expr::proto_tag(), proto::child_c<0>(expr),... proto::child_c<N>(expr)) >


PrevUpHomeNext

Статья Struct template callable_eval раздела The Boost C++ Libraries BoostBook Documentation Subset Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-19 20:59:35/0.0080220699310303/1