From 4fba5827bd3bbf565efaf942d21ef50b1f3d3871 Mon Sep 17 00:00:00 2001 From: Awin Huang Date: Wed, 8 Jun 2022 14:32:41 +0800 Subject: [PATCH] vault backup: 2022-06-08 14:32:41 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/lvalue.md 02. PARA/03. Resources(資源)/C++17/rvalue.md 02. PARA/03. Resources(資源)/git/submodule.md --- .obsidian/workspace | 14 +++++++------- 02. PARA/03. Resources(資源)/C++17/lvalue.md | 3 ++- 02. PARA/03. Resources(資源)/C++17/rvalue.md | 6 +++--- 02. PARA/03. Resources(資源)/git/submodule.md | 0 4 files changed, 12 insertions(+), 11 deletions(-) create mode 100644 02. PARA/03. Resources(資源)/git/submodule.md diff --git a/.obsidian/workspace b/.obsidian/workspace index 6d6aad3..649845a 100644 --- a/.obsidian/workspace +++ b/.obsidian/workspace @@ -10,7 +10,7 @@ "state": { "type": "markdown", "state": { - "file": "02. PARA/03. Resources(資源)/C++17/rvalue.md", + "file": "02. PARA/03. Resources(資源)/git/submodule.md", "mode": "source", "source": true } @@ -23,7 +23,7 @@ "state": { "type": "outline", "state": { - "file": "02. PARA/03. Resources(資源)/C++17/rvalue.md" + "file": "02. PARA/03. Resources(資源)/git/submodule.md" } } } @@ -81,7 +81,7 @@ "state": { "type": "backlink", "state": { - "file": "02. PARA/03. Resources(資源)/C++17/rvalue.md", + "file": "02. PARA/03. Resources(資源)/git/submodule.md", "collapseAll": true, "extraContext": true, "sortOrder": "alphabetical", @@ -125,15 +125,15 @@ }, "active": "94f0e8a81af6c9e2", "lastOpenFiles": [ + "02. PARA/03. Resources(資源)/git/submodule.md", + "02. PARA/03. Resources(資源)/git.md", "02. PARA/03. Resources(資源)/C++17/rvalue.md", + "02. PARA/03. Resources(資源)/C++17/lvalue.md", "00. TOP/01. TODO.md", "02. PARA/01. Project(專案)/008. Sentinel.md", "02. PARA/03. Resources(資源)/FFMPEG/01. Setup.md", "02. PARA/03. Resources(資源)/FFMPEG/00. Introduction.md", "02. PARA/03. Resources(資源)/FFMpeg.md", - "02. PARA/03. Resources(資源)/99. templates/日記.md", - "01. Daily/2022-06-06(週一).md", - "02. PARA/03. Resources(資源)/Qt.md", - "02. PARA/03. Resources(資源)/C++17/智慧指標.md" + "02. PARA/03. Resources(資源)/99. templates/日記.md" ] } \ No newline at end of file diff --git a/02. PARA/03. Resources(資源)/C++17/lvalue.md b/02. PARA/03. Resources(資源)/C++17/lvalue.md index da4b4b1..6c571ec 100644 --- a/02. PARA/03. Resources(資源)/C++17/lvalue.md +++ b/02. PARA/03. Resources(資源)/C++17/lvalue.md @@ -1,2 +1,3 @@ +lvalue 是指: - 等號左邊的值 -- 「有固定address」的變數 \ No newline at end of file +- 可以被「取址」的變數 \ No newline at end of file diff --git a/02. PARA/03. Resources(資源)/C++17/rvalue.md b/02. PARA/03. Resources(資源)/C++17/rvalue.md index 38b6c14..aa8ec8b 100644 --- a/02. PARA/03. Resources(資源)/C++17/rvalue.md +++ b/02. PARA/03. Resources(資源)/C++17/rvalue.md @@ -1,12 +1,12 @@ +rvalue 是指: - 等號右邊的值 - 臨時的值,例如運算的結果 - 無法被取址(address-of)的物件 -# rvalue參考 可以用`&&`來參考rvalue。例如: -``` +```cpp int c{5}; -int&& rtepm {c + 3}; +int&& rtepm {c + 3}; // rtepm等於c + 3的結果 ``` ## 參考 diff --git a/02. PARA/03. Resources(資源)/git/submodule.md b/02. PARA/03. Resources(資源)/git/submodule.md new file mode 100644 index 0000000..e69de29