FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Defines traits and utility methods for standard types, like uint16_t
.
More...
Classes | |
struct | derives_from |
Utility class that checks, at compile-time, that type T is a subtype of type B . More... | |
struct | remove_reference |
Remove a reference from the given type. More... | |
struct | SmallestInt |
Find the smallest integral types, signed and unsigned, tha can hold a given value. More... | |
struct | Type_trait |
This trait allows static checks (at compile-time) of properties of various types. More... | |
Functions | |
template<typename T > | |
static constexpr bool | is_uint8_or_uint16 () |
Check if a given type is uint8_t or uint16_t . More... | |
Defines traits and utility methods for standard types, like uint16_t
.
Note that this namespace is used internally by FastArduino API and will generally not be useful to usual programs. It is however made part of the core API because it might be useful in some occasions.
|
staticconstexpr |
Check if a given type is uint8_t
or uint16_t
.
This is a constexpr
template function, hence it can be used in compile-time checks with static_assert()
.
Definition at line 79 of file types_traits.h.