![]() |
Home | Libraries | People | FAQ | More |
boost::proto::fold::impl
// In header: <boost/proto/transform/fold.hpp>
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
(,
,
) ;
};
impl
public member functions( expr, state, data) ;
Let seq
be
,
let when
<_
, Sequence>()(expr, state, data)state0
be
,
and let when
<_
, State0>()(expr, state, data)fun(data)
be an object such that
fun(data)(state, expr)
is equivalent to
. Then,
this function returns when
<_
, Fun>()(expr, state, data)fusion::fold(seq, state0, fun(data))
.
Parameters: |
|