All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
gears::concepts::Constructible< T, Args > Struct Template Reference

Checks if a type is constructible. More...

Inherits is_constructible< Bare< T >, Args...>.

Detailed Description

template<typename T, typename... Args>
struct gears::concepts::Constructible< 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>.

Template Parameters
TType to check
ArgsTypes of the parameters expected in the constructor. If empty, default constructor is assumed.

Definition at line 236 of file basic.hpp.