330 B
330 B
for_each 是一個 function,它的原型是:
template<class InputIterator, class Function>
Function for_each(
InputIterator _Start,
InputIterator _Last,
Function _Func
);
它需要3個參數,第1個是開始的iterator,第2是結束的 iterator,第3個是要用來處理的 function