「cpp/utility/optional/nullopt」の版間の差分
提供: cppreference.com
(ページの作成:「{{cpp/title|nullopt}} {{cpp/utility/optional/navbar}} {{dcl begin}} {{dcl header | optional}} {{dcl | since=c++17 |1= inline constexpr nullopt_t nullopt{- →unspecified: };...」) |
細 |
||
15行: | 15行: | ||
{{dsc end}} | {{dsc end}} | ||
− | {{langlinks|en|zh}} | + | {{langlinks|en|zh}} |
2020年3月5日 (木) 22:12時点における版
ヘッダ <optional> で定義
|
||
inline constexpr nullopt_t nullopt{/*unspecified*/}; |
(C++17以上) | |
std::nullopt
は、未初期化状態の optional
型を表すために使用される、 std::nullopt_t 型の定数です。
関連項目
(C++17) |
未初期化状態の optional 型を表す標識 (クラス) |