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

std::default_initializable - std::default_initializable


Defined in header <concepts>
template < class T >


concept default_initializable = std::constructible_from<T> && (since C++20)
requires { T{}; } &&


/* T t; is well-formed, see below */;


The default_initializable concept checks whether variables of type T can be


* value-initialized (T() is well-formed);
* direct-list-initialized from an empty initializer list (T{} is well-formed); and
* default-initialized (T t; is well-formed).


Access checking is performed as if in a context unrelated to T. Only the validity of
the immediate context of the variable initialization is considered.


template<class T>
concept default_initializable =
std::constructible_from<T> &&
requires { T{}; } &&
requires { ::new (static_cast<void*>(nullptr)) T; };


specifies that a variable of the type can be
constructible_from constructed from or bound to a set of argument
(C++20) types
(concept)
is_default_constructible
is_trivially_default_constructible
is_nothrow_default_constructible checks if a type has a default constructor
(C++11) (class template)
(C++11)
(C++11)

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.