命名空间
变体
操作

std::nullopt

来自 cppreference.cn
< cpp‎ | 工具‎ | 可选
 
 
 
 
定义于头文件 <optional>
inline constexpr nullopt_t nullopt{/*未指定*/};
(C++17 起)

std::nulloptstd::nullopt_t 类型的常量。用于指示 std::optional 不包含值。

[编辑] 参见

(C++17)
指示 std::optional 不包含值的类型
(类) [编辑]