命名空间
变体
操作

std::experimental::observer_ptr<W>::operator bool

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

检查 *this 是否有关联的被监视对象,即 get() != nullptr 是否为真。

目录

[edit] 参数

(无)

[edit] 返回值

如果 *this 具有关联的被监视对象,则为 true,否则为 false

[edit] 示例

[edit] 参见

返回指向被监视对象的指针
(public member function) [edit]