ThenPolicyExample Struct Reference
ThenPolicyExample is a policy template for the compile time selection utility IF_CONTAINS_TYPE_(NAME). More...
#include <ThenPolicyExample.h>
Static Public Member Functions | |
template<typename T , typename SubType , 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 then clause of the selector policy. This example outputs the function signature and it can be used as starting point for developing own user-specific ThenPolicies. |
Detailed Description
ThenPolicyExample 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 then path of the compile time switch, although the ThenPolicy as well as the ElsePolicy have the same interface.
Member Function Documentation
static R ThenPolicyExample::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 then clause of the selector policy. This example outputs the function signature and it can be used as starting point for developing own user-specific ThenPolicies.
- Template Parameters:
-
T is a type normally a configuration type/class SubType is a type and you can instantiate an object of it. If the policy is used in the context of IF_CONTAINS_TYPE_(NAME) it is guaranteed, that SubType is the requested type. 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/ThenPolicyExample.h