FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
Loading...
Searching...
No Matches
types_traits::Type_trait< T > Struct Template Reference

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...
 

Detailed Description

template<typename T>
struct types_traits::Type_trait< T >

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.

Template Parameters
Tthe type for which we want to know the traits

Definition at line 46 of file types_traits.h.

Member Data Documentation

◆ IS_INT

template<typename T >
constexpr bool types_traits::Type_trait< T >::IS_INT = false
staticconstexpr

Indicates if T is an integer type.

Definition at line 49 of file types_traits.h.

◆ IS_SIGNED

template<typename T >
constexpr bool types_traits::Type_trait< T >::IS_SIGNED = false
staticconstexpr

Indicates if T is a signed integer type.

Definition at line 51 of file types_traits.h.

◆ SIZE

template<typename T >
constexpr size_t types_traits::Type_trait< T >::SIZE = 0
staticconstexpr

Indicates the size in bytes of T.

Definition at line 53 of file types_traits.h.


The documentation for this struct was generated from the following file: