for_each
As the name suggests, this method picks up each value in our container and performs the desired action.
We'll cover the following...
std::for_each
applies a unary callable to each element of its range. The range is given by the input iterators.
Press + to interact
UnFunc std::for_each(InpIt first, InpIt second, UnFunc func)void std::for_each(ExePol pol, FwdIt first, FwdIt second, UnFunc func)
...