std::nullopt
来自cppreference.com
在标头 <optional> 定义
|
||
inline constexpr nullopt_t nullopt{/* 未指明 */}; |
(C++17 起) | |
std::nullopt
是 std::nullopt_t 类型的常量,用于指示 optional
不含值。
参阅
(C++17) |
不含值的 std::optional 的指示器 (类) |