命名空间
变体
操作

std::experimental::shared_ptr<T>::get

来自 cppreference.cn
 
 
实验性
技术规范
Filesystem library (filesystem TS) (文件系统库)
Library fundamentals (library fundamentals TS) (库基础)
Library fundamentals 2 (library fundamentals TS v2) (库基础 2)
Library fundamentals 3 (library fundamentals TS v3) (库基础 3)
Extensions for parallelism (parallelism TS) (并行扩展)
Extensions for parallelism 2 (parallelism TS v2) (并行扩展 2)
Extensions for concurrency (concurrency TS) (并发扩展)
Extensions for concurrency 2 (concurrency TS v2) (并发扩展 2)
Concepts (concepts TS) (概念)
Ranges (ranges TS) (范围)
Reflection (reflection TS) (反射)
Mathematical special functions (special functions TR) (数学特殊函数)
实验性 非TS
模式匹配
线性代数
std::execution
契约
2D 图形
 
 
 
element_type* get() const noexcept;
(library fundamentals TS)

返回存储的指针。

目录

[edit] 参数

(无)

[edit] 返回值

存储的指针。

[edit] 注释

shared_ptr 可能在共享对象所有权的同时存储指向另一个对象的指针。 get() 返回存储的指针,而不是托管的指针。

[edit] 示例

[edit] 参见

解引用存储的指针
(公共成员函数) [编辑]