![]() |
Home | Libraries | People | FAQ | More |
boost::proto::fold — A PrimitiveTransform that invokes the
fusion::fold<>
algorithm to accumulate a value.
// In header: <boost/proto/transform/fold.hpp>
template<typename Sequence, typename State0, typename Fun>
struct fold : proto::transform< {
// member classes/structs/unions
template<typename Expr, typename State, typename Data>
struct impl : proto::transform_impl< {
// types
typedef when<_, ; // For exposition only
typedef when<_, ; // For exposition only
typedef ; // A Fusion sequence, for exposition only
typedef ; // An initial state for the fold, for exposition only
typedef ; // fun(d)(s,e) == when<_,Fun>()(e,s,d)
typedef ;
// public member functions
(,
,
) ;
};
};
For the complete description of the behavior of the proto::fold<>
transform, see the documentation for the nested
proto::fold::impl<>
class template.