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

Struct template default_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 default_eval

boost::proto::context::default_eval — A BinaryFunction that accepts a Proto expression and a context, evaluates each child expression with the context, and combines the result using the standard C++ meaning for the operator represented by the current expression node.

Synopsis

// In header: <boost/proto/context/default.hpp>
template<typename Expr, typename Context> 
struct default_eval {
  // types
  typedef typename Expr::tag_type Tag;          // For exposition only
  typedef see-below               result_type;
  // public member functions
  result_type operator()(Expr &, Context &) const;
  // public data members
  static Expr & s_expr;  // For exposition only
  static Context & s_context;  // For exposition only
};

Description

Пусть<OP>будет оператором C++, соответствующим<Expr::proto_tag>. Например, если<Tag>это< proto::tag::plus>, пусть< OP>будет<+>.

Поведение этого класса определяется в терминах C++0x.<decltype>Ключевые слова. В системах, где это ключевое слово недоступно, Proto использует Boost. Тип библиотеки для приближения поведения.

default_eval public types

  1. typedefсм.-нижеresult_type;

default_eval public member functions

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

    Параметры:

    <context>

    Контекст оценки

    <expr>

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


PrevUpHomeNext

Статья Struct template default_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-20 05:38:57/0.0086219310760498/1