std::nullopt
来自 cppreference.cn
| 定义于头文件 <optional> |
||
| inline constexpr nullopt_t nullopt{/*未指定*/}; |
(C++17 起) | |
std::nullopt 是 std::nullopt_t 类型的常量。用于指示 std::optional 不包含值。
[编辑] 参见
| (C++17) |
指示 std::optional 不包含值的类型(类) |