|
Avro C++
|
Check if a T is a complete type i.e.
More...
#include <AvroTraits.hh>
Public Types | |
| typedef char | yes[1] |
| typedef char | no[2] |
Static Public Member Functions | |
| template<class U > | |
| static yes & | test (char(*)[sizeof(U)]) |
| template<class U > | |
| static no & | test (...) |
Static Public Attributes | |
| static const bool | value = sizeof(test<T>(0)) == sizeof(yes) |
Check if a T is a complete type i.e.
it is defined as opposed to just declared.
is_defined<T>::value will be true or false depending on whether T is a complete type or not respectively.
1.8.17