第159页 Ch5/Item23: Understand std::move and std::forward
- 章节名:Ch5/Item23: Understand std::move and std::forward
- 页码:第159页
...... rvalue references returned from functions are rvalues. 引自 Ch5/Item23: Understand std::move and std::forward
24人阅读
晨星对本书的所有笔记 · · · · · ·
-
第139页 Ch4/Item20: Use std::weak_ptr for std::shared_ptr-like pointers that can dangle
Potential use cases for std::weak_ptr include caching, observer lists, and the preventi...
-
第158页 Ch5/Item23: Understand std::move and std::forward
std::move doesn't move anything. std::forward doesn't forward anything. At runtime, nei...
-
第159页 Ch5/Item23: Understand std::move and std::forward
-
第162页 Ch5/Item23: Understand std::move and std::forward
Move requests on const objects are silently transformed into copy operations.
-
第164页 Ch5/Item24: Distinguish universal references from rvalue references
Universal references arise in two contexts. The most common is function template parame...
> 查看全部64篇
说明 · · · · · ·
表示其中内容是对原文的摘抄