std::experimental::observer_ptr<W>:: reset
From cppreference.net
<
cpp
|
experimental
|
observer ptr
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
std::experimental::observer_ptr
| Member functions | ||||
| Modifiers | ||||
|
observer_ptr::reset
|
||||
| Observers | ||||
| Conversions | ||||
| Non-member functions | ||||
|
constexpr
void
reset
(
element_type
*
p
=
nullptr
)
noexcept
;
|
(库基础技术规范 v2) | |
将 * this 设置为监视由 p 指向的对象。调用后 get() 返回 p 。
参数
| ptr | - | 指向要监视的新对象的指针 |
示例
|
本节内容不完整
原因:缺少示例 |
参见
|
返回被监视对象的指针并停止监视该对象
(公开成员函数) |