📜  for_each c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:51.531000             🧑  作者: Mango

代码示例1
for_each( InputIt first, InputIt last, UnaryFunction f );
//Example
vector v{ 1, 2, 3, 4, 5 };
for_each(v.begin(), v.end(), [](int i) { cout<