Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
DefaultConstructible
Description
A type is DefaultConstructible if it has a default constructor, that is, if it is possible to construct an object of that type without initializing the object to any particular value.
Refinement Of
Associated Type(s)
Notation
XA type that is a model of DefaultConstructible
xAn object of type X
Definitions
Valid Expressions
NameExpressionType requirementsReturn type
Default constructorX() X
Default constructorX x; [1]  
Expression Semantics
NameExpressionPreconditionSemanticsPostcondition
Default constructorX()   
Default constructorX x;   
Complexity Guarantee(s)
Type(s) Modeling this Concept
Notes
[1] The form X x = X() is not guaranteed to be a valid expression, because it uses a copy constructor. A type that is DefaultConstructible is not necessarily Assignable
See Also