Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/meta.h>
This meta-structure is useful to define a type that depends on a condition, usually #SFINAE function. If the condition B is true, the returned type contains a type named "_" equal to T. Else the returned structure is void.
A typical utilization is a template definition that is configured according to a specific support as in the example below. If the type contains a function "f" (without argument) it is called. Else it is not.
B | Condition. |
T | Type (default to void). |