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
|
||||
|
Definiert im Header
<optional>
|
||
|
inline
constexpr
nullopt_t nullopt
{
/*unspecified*/
}
;
|
(seit C++17) | |
std::nullopt
ist eine Konstante vom Typ
std::nullopt_t
. Wird verwendet, um anzuzeigen, dass ein
std::optional
keinen Wert enthält.
Siehe auch
|
(C++17)
|
Indikator für ein
std::optional
, das keinen Wert enthält
(Klasse) |