Dela via


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);

Remarks

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

Requirements

Header: <cliext/algorithm>

Namespace: cliext

See Also

Reference

algorithm (STL/CLR)