std::nullopt
來自 cppreference.com
定義於標頭檔案 <optional> |
||
inline constexpr nullopt_t nullopt{/*未指定*/}; |
(C++17 起) | |
std::nullopt
是 std::nullopt_t 型別的常量。用於指示 std::optional
不包含值。
[編輯] 參見
(C++17) |
指示 std::optional 不包含值的型別(類) |