Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Macro BOOST_PROTO_EXTENDS

BOOST_PROTO_EXTENDS — For creating expression wrappers that add behaviors to a Proto expression template, like proto::extends<>, but while retaining POD-ness of the expression wrapper.

Synopsis

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

BOOST_PROTO_EXTENDS(Expr, Derived, Domain)

Description

Equivalent to:

BOOST_PROTO_BASIC_EXTENDS(BOOST_PROTO_EXTENDS_ASSIGN()
BOOST_PROTO_EXTENDS_SUBSCRIPT()
BOOST_PROTO_EXTENDS_FUNCTION()

If the Domain parameter is dependent, you can specify it as typename Domain, as in BOOST_PROTO_EXTENDS(Expr, Derived, typename Domain)

Example:

proto::domain< proto::pod_generator< BOOST_PROTO_EXTENDS(proto::terminal<


PrevUpHomeNext