We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

for_each (STL/CLR)

Applies a specified function object to each element in a forward order within a range and returns the function object.

template<class _InIt, class _Fn1> inline
    _Fn1 for_each(_InIt _First, _InIt _Last, _Fn1 _Func);

This function behaves the same as the STL function for_each. For more information, see for_each.

Header: <cliext/algorithm>

Namespace: cliext