From 08e568d9e51d3b3f93eca7df2314fdb7517d0014 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Mon, 13 Jun 2022 21:39:21 +0800 Subject: [PATCH] vault backup: 2022-06-13 21:39:21 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Affected files: .obsidian/workspace 02. PARA/03. Resources(資源)/C++17/lambda.md --- .obsidian/workspace | 8 ++++---- 02. PARA/03. Resources(資源)/C++17/lambda.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.obsidian/workspace b/.obsidian/workspace index f3eed55..b341c81 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -9,7 +9,7 @@ "state": { "type": "markdown", "state": { - "file": "02. PARA/03. Resources(資源)/C++17/C++17.md", + "file": "02. PARA/03. Resources(資源)/C++17/lambda.md", "mode": "source", "source": true } @@ -69,7 +69,7 @@ "state": { "type": "backlink", "state": { - "file": "02. PARA/03. Resources(資源)/C++17/C++17.md", + "file": "02. PARA/03. Resources(資源)/C++17/lambda.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -86,7 +86,7 @@ "state": { "type": "outline", "state": { - "file": "02. PARA/03. Resources(資源)/C++17/C++17.md" + "file": "02. PARA/03. Resources(資源)/C++17/lambda.md" } } } @@ -116,8 +116,8 @@ }, "active": "cfe19fa2de06a1e6", "lastOpenFiles": [ - "02. PARA/03. Resources(資源)/C++17/C++17.md", "02. PARA/03. Resources(資源)/C++17/lambda.md", + "02. PARA/03. Resources(資源)/C++17/C++17.md", "02. PARA/03. Resources(資源)/C++17/以值擷取(captured-by-value).md", "02. PARA/03. Resources(資源)/C++17/以值擷取(captured.md", "00. TOP/01. TODO.md", diff --git a/02. PARA/03. Resources(資源)/C++17/lambda.md b/02. PARA/03. Resources(資源)/C++17/lambda.md index fb89ffd..b52afb7 100644 --- a/02. PARA/03. Resources(資源)/C++17/lambda.md +++ b/02. PARA/03. Resources(資源)/C++17/lambda.md @@ -26,7 +26,7 @@ auto comapre = [] (int x, int y) -> bool { ``` ## Lamdba的擷取子句 -以中括號開頭的 *lamdba 導入器*可以將外部的變數傳給 Lamdba 運算式,正式名稱是「擷取子句(capture clause)」。 +以中括號開頭的 *lamdba 導入器* 可以將外部的變數傳給 Lamdba 運算式,正式名稱是「擷取子句(capture clause)」。 `[=]` 表示它們會以值擷取(captured by value)。Scope內的變數可以在 lamdba 內使用,但是不可以改變。 `[&]` 表示它們會以參考擷取(captured by reference)。Scope內的變數可以在 lamdba 內使用,可以改變。