Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 677 Bytes

nullopt-t-structure.md

File metadata and controls

23 lines (17 loc) · 677 Bytes
description title ms.date f1_keywords
Learn more about: nullopt_t Struct
nullopt_t Struct
08/04/2019
optional/std::nullopt_t
optional/std::nullopt

nullopt_t Struct

The nullopt_t type is a unique, empty type used to indicate an optional object doesn't contain a value.

The constant nullopt of type nullopt_t indicates an optional type has an uninitialized state. It can be used to initialize an optional object or compared with one.

Syntax

struct nullopt_t;
inline constexpr nullopt_t nullopt{ /*implementation-defined*/ };

See also

<optional>
optional class