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

Utility class that checks, at compile-time, that type T is a subtype of type B. More...

#include <fastarduino/types_traits.h>

Detailed Description

template<class T, class B>
struct types_traits::derives_from< T, B >

Utility class that checks, at compile-time, that type T is a subtype of type B.

This is inspired from https://stackoverflow.com/a/3178315. Trying to instantiate this type when T is not a subtype of B will fail compilation.

Definition at line 92 of file types_traits.h.


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