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

Click here to view the latest version of this page.
PrevUpHomeNext

Struct template as_child

boost::proto::result_of::as_child — A metafunction that computes the return type of the proto::as_child() function.

Synopsis

// In header: <boost/proto/traits.hpp>

template<typename T, typename Domain = proto::default_domain> 
struct as_child {
  // types
  typedef typename Domain::template as_child< T >::result_type type;
};

Description

The proto::result_of::as_child<> metafunction turns types into Proto expression types, if they are not already, in a domain-specific way. It is used by Proto to compute the type of an object to store as a child in another expression node.

See proto::domain::as_child<> for a complete description of the default behavior.


PrevUpHomeNext