Type trait to check if type has default constructor. More...
#include <rtti.hpp>
Static Public Member Functions | |
| template<typename X , typename = decltype(X())> | |
| static yes | test (X *) |
| template<typename X > | |
| static no | test (...) |
Static Public Attributes | |
| static constexpr nbool | is = sizeof(decltype(test<T>(nullptr))) == sizeof(yes) |
Additional Inherited Members | |
Public Types inherited from by::metaIf | |
| typedef short | yes |
| typedef char | no |
Type trait to check if type has default constructor.
Uses SFINAE to determine at compile-time whether type T can be default-constructed.