vault backup: 2022-07-13 10:13:12
Affected files: 02. PARA/03. Resources(資源)/C++17/for_each.md
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
for_each 是一個函式,它的原型是:
|
for_each 是一個 function,它的原型是:
|
||||||
```cpp
|
```cpp
|
||||||
template<class InputIterator, class Function>
|
template<class InputIterator, class Function>
|
||||||
Function for_each(
|
Function for_each(
|
||||||
InputIterator _First,
|
InputIterator _Start,
|
||||||
InputIterator _Last,
|
InputIterator _Last,
|
||||||
Function _Func
|
Function _Func
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
它需要3個參數,第一個
|
它需要3個參數,第1個是開始的iterator,第2是結束的 iterator,第3個是要用來處理的 function
|
||||||
Reference in New Issue
Block a user