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

Struct template pod_generator

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 pod_generator

boost::proto::pod_generator — A generator that wraps expressions passed to it in the specified extension wrapper and uses aggregate initialization for the wrapper.

Synopsis

// In header: <boost/proto/generate.hpp>
template<template< typename > class Extends> 
struct pod_generator :  proto::callable {
  // member classes/structs/unions
  template<typename This, typename Expr> 
  struct result<This(Expr)> {
    // types
    typedef Extends< Expr > type;
  };
  // public member functions
  template<typename Expr> Extends< Expr > operator()(Expr const &) const;
};

Description

Генераторы предназначены для использования в качестве первого параметра шаблона для шаблона класса<proto::domain<>>и контроля того, следует ли настраивать выражения в этом домене.<proto::pod_generator<>>обертывает каждое выражение, переданное ему в обертке<Extends<>>, и использует агрегированную инициализацию для обернутого объекта.

pod_generator public member functions

  1. <
    template<typenameExpr>Extends<Expr>operator()(Exprconst&expr)const;
    >

    Параметры:

    <expr>

    Прото-выражение

    Возвращение:

    <Extends<Expr> that = {expr}; return that;>


PrevUpHomeNext

Статья Struct template pod_generator раздела 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 09:38:01/0.0077371597290039/1