命名空间
变体
操作

std::nullopt

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

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

[编辑] 参见

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