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::experimental::nullopt_t(3) C++ Standard Libary std::experimental::nullopt_t(3)

std::experimental::nullopt_t - std::experimental::nullopt_t


Defined in header <experimental/optional>
struct nullopt_t; (library fundamentals TS)


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


std::experimental::nullopt_t must be a LiteralType and cannot have a default
constructor.


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


nullopt_t is not DefaultConstructible 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 {
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.