![]() |
Home | Libraries | People | FAQ | More |
Returns the result type of accumulate
.
template< typename Sequence, typename State, typename F> struct accumulate { typedef unspecified type; };
Table 1.36. Parameters
Parameter | Requirement | Description |
---|---|---|
Sequence |
A model of Forward Sequence | The sequence to iterate |
State |
Any type | The initial state for the first application of
F
|
F |
A model of binary Polymorphic Function Object | The operation to be applied on forward traversal |
result_of::accumulate
<Sequence, State, F>::type
Return type: Any type
Semantics: Returns the result of applying
accumulate
to a sequence
of type Sequence
, with
an initial state of type State
and binary Polymorphic
Function Object of type F
.
Linear, exactly
applications of result_of::size
<Sequence>::valueF
.
#include <boost/fusion/algorithm/iteration/accumulate.hpp>
Copyright © 2001-2005 Joel de Guzman, Dan Marsden |