NiHu  2.0
crtp_base.hpp File Reference

Define CRTP helper functions and metafunctions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ignore< T, Ignore >
 Metafunction returning its first argument and ignoring all subsequent. More...
 

Macros

#define NIHU_CRTP_HELPERS
 define CRTP helper function More...
 

Functions

template<class Derived , class Dummy >
ignore< Derived, Dummy >::type const * const_crtp_ptr (void)
 crtp decltype helper function
 

Detailed Description

Define CRTP helper functions and metafunctions.

Definition in file crtp_base.hpp.

Macro Definition Documentation

◆ NIHU_CRTP_HELPERS

#define NIHU_CRTP_HELPERS
Value:
Derived const &derived() const \
{ \
return static_cast<Derived const &>(*this); \
} \
Derived &derived() \
{ \
return static_cast<Derived &>(*this); \
}

define CRTP helper function

Definition at line 29 of file crtp_base.hpp.