vault backup: 2022-07-13 10:13:12

Affected files:
02. PARA/03. Resources(資源)/C++17/for_each.md
This commit is contained in:
2022-07-13 10:13:12 +08:00
parent 8af38280f2
commit 777e62bfe2

View File

@@ -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