diff --git a/.obsidian/workspace b/.obsidian/workspace index 84d506f..c66d6c6 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -9,7 +9,7 @@ "state": { "type": "markdown", "state": { - "file": "02. PARA/01. Project(專案)/008. Sentinel.md", + "file": "02. PARA/03. Resources(資源)/C++17/for_each.md", "mode": "source", "source": true } @@ -69,7 +69,7 @@ "state": { "type": "backlink", "state": { - "file": "02. PARA/01. Project(專案)/008. Sentinel.md", + "file": "02. PARA/03. Resources(資源)/C++17/for_each.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -86,7 +86,7 @@ "state": { "type": "outline", "state": { - "file": "02. PARA/01. Project(專案)/008. Sentinel.md" + "file": "02. PARA/03. Resources(資源)/C++17/for_each.md" } } } @@ -116,15 +116,15 @@ }, "active": "ec13ce58b15fa6d4", "lastOpenFiles": [ + "02. PARA/03. Resources(資源)/讀書筆記/20220619 - 精確的力量.md", + "02. PARA/03. Resources(資源)/C++17/智慧指標.md", + "02. PARA/03. Resources(資源)/C++17/C++17.md", "02. PARA/01. Project(專案)/008. Sentinel.md", "00. TOP/01. TODO.md", "02. PARA/02. Area(領域)/20150803 - Android/ADB 取得 APK 的 icon.md", "02. PARA/02. Area(領域)/20150803 - Android/ADB.md", "02. PARA/03. Resources(資源)/QT/QVariant.md", "00. TOP/02. MOC.md", - "01. Daily/2021/06/2021-06-10(週四).md", - "02. PARA/03. Resources(資源)/OpenGL.md", - "02. PARA/03. Resources(資源)/C++17/Structured binding declaration.md", - "02. PARA/03. Resources(資源)/Tool Setup/Chrome.md" + "01. Daily/2021/06/2021-06-10(週四).md" ] } \ No newline at end of file diff --git a/02. PARA/03. Resources(資源)/C++17/for_each.md b/02. PARA/03. Resources(資源)/C++17/for_each.md new file mode 100644 index 0000000..1f3f3b8 --- /dev/null +++ b/02. PARA/03. Resources(資源)/C++17/for_each.md @@ -0,0 +1,11 @@ +for_each 是一個函式,它的原型是: +```cpp +template + Function for_each( + InputIterator _First, + InputIterator _Last, + Function _Func + ); +``` + +它需要3個參數,第一個 \ No newline at end of file