名稱空間
變體
操作

std::nullopt

來自 cppreference.com
< cpp‎ | 工具‎ | 可選
 
 
 
 
定義於標頭檔案 <optional>
inline constexpr nullopt_t nullopt{/*未指定*/};
(C++17 起)

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

[編輯] 參見

(C++17)
指示 std::optional 不包含值的型別
(類) [編輯]