std:: nullopt
From cppreference.net
C++
Utilities library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::optional
| Member functions | ||||
| Observers | ||||
| Iterators | ||||
|
(C++26)
|
||||
|
(C++26)
|
||||
| Monadic operations | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
| Modifiers | ||||
| Non-member functions | ||||
| Deduction guides | ||||
| Helper classes | ||||
| Helper objects | ||||
|
nullopt
|
||||
|
ヘッダーで定義
<optional>
|
||
|
inline
constexpr
nullopt_t nullopt
{
/*unspecified*/
}
;
|
(C++17以降) | |
std::nullopt
は型
std::nullopt_t
の定数です。
std::optional
が値を保持していないことを示すために使用されます。
関連項目
|
(C++17)
|
値を含まない
std::optional
のインジケータ
(クラス) |