Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches

Functions

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

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 std::reference_wrapper of the function object using std::ref() instead.

Function Documentation

◆ for_each() [1/3]

template<class InputIterator, class UnaryFunction>
void for_each ( InputIterator first,
InputIterator last,
UnaryFunction f )

Definition at line 42 of file for_each.hpp.

◆ for_each() [2/3]

template<class InputRange, class UnaryFunction>
void for_each ( InputRange & range,
UnaryFunction f )

Definition at line 52 of file for_each.hpp.

◆ for_each() [3/3]

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

Definition at line 62 of file for_each.hpp.