GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::nullopt_t(3) C++ Standard Libary std::nullopt_t(3)

std::nullopt_t - std::nullopt_t


Defined in header <optional>
struct nullopt_t; (since C++17)


std::nullopt_t is an empty class type used to indicate optional type with
uninitialized state. In particular, std::optional has a constructor with nullopt_t
as a single argument, which creates an optional that does not contain a value.


std::nullopt_t must be a non-aggregate LiteralType and cannot have a default
constructor or an initializer-list constructor.


It must have a constexpr constructor that takes some implementation-defined literal
type.


The constraints on nullopt_t's constructors exist to support both op = {}; and op =
nullopt; as the syntax for disengaging an optional object.


A possible implementation of this class is


struct nullopt_t {
explicit constexpr nullopt_t(int) {}
};


nullopt an object of type nullopt_t
(C++17) (constant)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.