Arduino Helpers master
Utility library for Arduino
Macros
CRTP.hpp File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CRTP(Derived)   (*static_cast<Derived *>(this))
 Helper for the Curiously Recurring Template Pattern. More...
 
#define CRTP_INST(Derived, el)   (static_cast<Derived &>(el))
 

Macro Definition Documentation

◆ CRTP

#define CRTP (   Derived)    (*static_cast<Derived *>(this))

Helper for the Curiously Recurring Template Pattern.

Definition at line 4 of file CRTP.hpp.

◆ CRTP_INST

#define CRTP_INST (   Derived,
  el 
)    (static_cast<Derived &>(el))

Definition at line 5 of file CRTP.hpp.