Mirror reflection library 0.5.13

mirror::mp::fold< Range, Status, ForwardOp > Struct Template Reference

Returns the result of successive application of ForwardOp on the range. More...

#include <mirror/meta_prog/fold.hpp>

List of all members.

Public Types

typedef unspecified_type type
 The result of the operation.
typedef fold< typename X::type,
Status, ForwardOp >::type 
type

Public Member Functions

 MIRROR_ASSERT_RETURNS_RANGE (X)

Detailed Description

template<typename Range, typename Status, typename ForwardOp>
struct mirror::mp::fold< Range, Status, ForwardOp >

Returns the result of successive application of ForwardOp on the range.

This meta-function returns the result of successive application of the binary forward operation on the status and all the items in the range passed as argument.

Template Parameters:
Rangethe range to traverse
Statusthe initial status for the first call of the ForwardOp
ForwardOpthe operation to be executed during the traversal
See also:
for_each

The documentation for this struct was generated from the following file:

Copyright © 2006-2011 Matus Chochlik, University of Zilina, Zilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Fri Dec 16 2011 by Doxygen (version 1.7.3).
Important note: Although the 'boostified' version of Mirror uses the Boost C++ libraries Coding Guidelines and is implemented inside of the boost namespace, it IS NOT an officially reviewed and accepted Boost library. Mirror is being developed with the intention to be submitted for review for inclusion to the Boost C++ libraries.