stlab.adobe.com Adobe Systems Incorporated

Functions

template<class InputIterator , class UnaryFunction >
void for_each (InputIterator first, InputIterator last, UnaryFunction f)
template<class InputRange , class UnaryFunction >
void for_each (const InputRange &range, UnaryFunction f)
template<class InputRange , class UnaryFunction >
void for_each (InputRange &range, UnaryFunction f)

Detailed Description

Note:
Unlike std::for_each(), adobe::for_each() does not return a copy of f because f may not be a function object (it must model ConvertibleToFunction). If it is necessary to retrieve information from the function object, pass a boost::reference_wrapper of the function object using boost::ref() instead.

Function Documentation

void adobe::for_each ( InputIterator  first,
InputIterator  last,
UnaryFunction  f 
)

for_each implementation

Definition at line 41 of file for_each.hpp.

void adobe::for_each ( const InputRange &  range,
UnaryFunction  f 
)

for_each implementation

Definition at line 63 of file for_each.hpp.

void adobe::for_each ( InputRange &  range,
UnaryFunction  f 
)

for_each implementation

Definition at line 52 of file for_each.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google