Skip to content

Commit

Permalink
修复空格问题
Browse files Browse the repository at this point in the history
  • Loading branch information
nxcy committed Dec 27, 2023
1 parent 6a54438 commit e81b5e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/群友提交/第06题/Wgtteol.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"constexpr atomic(T desired) noexcept;" 是一个转换构造函数。
C++17之前 std::atomic < int>6是一个纯右值表达式 初始化的时候要进行 复制 / 移动构造,"std::atomic<int> n = 6" 可以写成 "std::atomic<int> n (std::atomic<int>(6))" 但是 atomic的复制构造被删除了
C++17之前 std::atomic < int>6是一个纯右值表达式 初始化的时候要进行 复制 / 移动构造,"std::atomic<int> n = 6" 可以写成 "std::atomic<int> n (std::atomic<int>(6))" 但是 atomic 的复制构造被删除了
而 C++ 17之后,纯右值表达式不在移动构造,而是原地构造。

0 comments on commit e81b5e2

Please sign in to comment.