ElsePolicyExample Struct Reference
ElsePolicyExample is a policy template for the compile time selection utility IF_CONTAINS_TYPE_(NAME). More...
#include <ElsePolicyExample.h>
Static Public Member Functions | |
template<typename T , typename SubTypeNotDefined , typename R > | |
static R | process () |
The method is provided for calling within the context of a selector template. As the name of the policy class describes this is intended to be called within the else clause of the selector policy. This example outputs the function signature and it can be used as starting point for developing own user-specific ElsePolicies. |
Detailed Description
ElsePolicyExample is a policy template for the compile time selection utility IF_CONTAINS_TYPE_(NAME).
It is an example on how to write such a policy, that can be used in the metioned context. It is intended to be used for the else path of the compile time switch, although the ThenPolicy as well as the ElsePolicy have the same interface.
Member Function Documentation
static R ElsePolicyExample::process | ( | ) | [inline, static] |
The method is provided for calling within the context of a selector template. As the name of the policy class describes this is intended to be called within the else clause of the selector policy. This example outputs the function signature and it can be used as starting point for developing own user-specific ElsePolicies.
- Template Parameters:
-
T is a type normally a configuration type/class SubTypeNotDefined is a type and you can not instantiate an object of it. Trying instantiation, leads to a compile time error if the policy is used in the context of IF_CONTAINS_TYPE_(NAME) R is the return value of the static process method and its default is void
References TRACE_FUNCTION.
The documentation for this struct was generated from the following file:
- include/config/policies/ElsePolicyExample.h