Range-v3
Range algorithms, views, and actions for the Standard Library
for_each.hpp File Reference

Typedefs

template<typename I , typename F >
using ranges::for_each_result = detail::in_fun_result< I, F >
 

Functions

template<typename I , typename S , typename F , typename P = identity>
auto ranges::for_each (I first, S last, F fun, P proj=P{}) -> for_each_result< I, F > requires input_iterator< I > &&sentinel_for< S, I > &&indirectly_unary_invocable< F, projected< I, P >>
 function template for_each
 
template<typename Rng , typename F , typename P = identity>
auto ranges::for_each (Rng &&rng, F fun, P proj=P{}) -> for_each_result< safe_iterator_t< Rng >, F > requires input_range< Rng > &&indirectly_unary_invocable< F, projected< iterator_t< Rng >, P >>