From Jason Turner

[concept.default.init]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp9dls7_f5/{from.md → to.md} +24 -0
tmp/tmp9dls7_f5/{from.md → to.md} RENAMED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Concept <a id="concept.default.init">[[concept.default.init]]</a>
2
+
3
+ ``` cpp
4
+ template<class T>
5
+ inline constexpr bool is-default-initializable = see below; // exposition only
6
+
7
+ template<class T>
8
+ concept default_initializable = constructible_from<T> &&
9
+ requires { T{}; } &&
10
+ is-default-initializable<T>;
11
+ ```
12
+
13
+ For a type `T`, *`is-default-initializable`*`<T>` is `true` if and only
14
+ if the variable definition
15
+
16
+ ``` cpp
17
+ T t;
18
+ ```
19
+
20
+ is well-formed for some invented variable `t`; otherwise it is `false`.
21
+ Access checking is performed as if in a context unrelated to `T`. Only
22
+ the validity of the immediate context of the variable initialization is
23
+ considered.
24
+