Mirror reflection library - Lagoon run-time layer 0.5.13
Namespaces | Functions

lagoon/range/fold.hpp File Reference

Applying successively a binary functor on a state and every element in a range. More...

#include <lagoon/lagoon_fwd.hpp>
Include dependency graph for fold.hpp:

Go to the source code of this file.

Namespaces

namespace  lagoon
 

The Lagoon run-time layer built on Mirror is defined in this namespace.


Functions

template<typename State , class Range , typename BinaryOp >
State lagoon::fold (Range range, State state, BinaryOp op)
 Accumulating the results of calling a binary functor on the elements.
template<typename State , class Range , typename BinaryOp >
State & lagoon::fold_ref (Range range, State &state_ref, BinaryOp op)
 Accumulating the results of calling a binary functor on the elements.
template<typename State , class Range , typename InitialOp , typename DefaultOp , typename FinalOp >
State & lagoon::fold_ref (Range range, State &state_ref, InitialOp initial, DefaultOp op, FinalOp final)
 Accumulating the results of calling a binary functor on the elements.

Detailed Description

Applying successively a binary functor on a state and every element in a range.

Copyright 2008-2010 Matus Chochlik. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


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.