[2] The reason this says '
DefaultConstructible
Default Constructible
Category: utilities
Component type: concept
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.
X
A type that is a model of DefaultConstructible
x
An object of type
Name | Expression | Return type |
---|---|---|
Default constructor | X() | X |
Default constructor | X x; [1] |
Name | Expression |
---|---|
Default constructor | X() |
Default constructor | X x; |
• int
• vector<double>
[1] The form
Assignable
Equality Comparable
Category: utilities
Component type: concept
A type is EqualityComparable if objects of that type can be compared for equality using
X
A type that is a model of EqualityComparable
x, y, z
Object of type
Name | Expression | Return type |
---|---|---|
Equality | x == y | Convertible to |
Inequality | x != y | Convertible to |
Name |
---|