Classes | |
struct | senf::mpl::nil |
Marker class for empty default values etc. More... | |
struct | senf::mpl::rv< n > |
Return-value type used to implement overload selection. More... | |
struct | senf::mpl::take_uint< _ > |
Take an arbitrary unsigned integer template argument. More... | |
struct | senf::mpl::take_int< _ > |
Take an arbitrary integer template argument. More... | |
struct | senf::mpl::take_class< _ > |
Take an arbitrary type template argument. More... | |
Macros | |
#define | SENF_MPL_RV(expr) |
Get return value of overload selector. More... | |
#define | SENF_MPL_SLOT_DEF(name, value) |
Define MPL slot. More... | |
#define | SENF_MPL_SLOT_SET(name, value) |
Set MPL slot. More... | |
#define | SENF_MPL_SLOT_GET(name) |
Get current MPL slot value. More... | |
#define SENF_MPL_RV | ( | expr | ) |
Get return value of overload selector.
Used together with senf::mpl::rv to implement overload selection.
#define SENF_MPL_SLOT_DEF | ( | name, | |
value | |||
) |
Define MPL slot.
The slot macros SENF_MPL_SLOT_DEF(), SENF_MPL_SLOT_SET() and SENF_MPL_SLOT_GET() provide a facility to get the last unsigned integer value assigned to the slot before the current point in the current class.
Of course, it does not make sense to use these macros for simple arithmetic as in the example. The SENF_MPL_SLOT macros allow to define macros which pass information from one macro invocation to the next.
#define SENF_MPL_SLOT_GET | ( | name | ) |
#define SENF_MPL_SLOT_SET | ( | name, | |
value | |||
) |