FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
This trait allows static checks (at compile-time) of properties of various types. More...
#include <fastarduino/types_traits.h>
Static Public Attributes | |
static constexpr bool | IS_INT = false |
Indicates if T is an integer type. More... | |
static constexpr bool | IS_SIGNED = false |
Indicates if T is a signed integer type. More... | |
static constexpr size_t | SIZE = 0 |
Indicates the size in bytes of T . More... | |
This trait allows static checks (at compile-time) of properties of various types.
Currently, this is limited to a few properties related to integer types, but this may be enhanced with more properties in the future, when the needs occur.
T | the type for which we want to know the traits |
Definition at line 46 of file types_traits.h.
|
staticconstexpr |
Indicates if T
is an integer type.
Definition at line 49 of file types_traits.h.
|
staticconstexpr |
Indicates if T
is a signed integer type.
Definition at line 51 of file types_traits.h.
|
staticconstexpr |
Indicates the size in bytes of T
.
Definition at line 53 of file types_traits.h.