mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-16 20:27:08 +03:00
book: style fixes (#256)
This commit is contained in:
@@ -249,7 +249,7 @@ const char*&& pr = "01234"; // 正确,"01234" 被隐式转换为 const char*
|
||||
// const char*& pl = "01234"; // 错误,此处不存在 const char* 类型的左值
|
||||
```
|
||||
|
||||
**将亡值(xvalue, expiring value)**,是 C++11 为了引入右值引用而提出的概念(因此在传统 C++ 中,
|
||||
**将亡值** (xvalue, expiring value),是 C++11 为了引入右值引用而提出的概念(因此在传统 C++ 中,
|
||||
纯右值和右值是同一个概念),也就是即将被销毁、却能够被移动的值。
|
||||
|
||||
将亡值可能稍有些难以理解,我们来看这样的代码:
|
||||
|
||||
Reference in New Issue
Block a user