Checks if a type is constructible. More...
Inherits is_constructible< Bare< T >, Args...>.
An uncategorised concept that checks if a type can be constructed.
Classes with a constructor can have multiple different ways of being constructed. If you rely on a certain way to construct a type, then this concept can be used to assert that a type meets those constructibility requirements. For example, if you want the type of MyClass
to have an MyClass(int, int)
constructor, then you would check it with Constructible<MyClass, int, int>
.
T | Type to check |
Args | Types of the parameters expected in the constructor. If empty, default constructor is assumed. |