Leverage SFINAE to conditionally enable a function or class at compile-time.
More...
#include <conditional_types.h>
template<bool B, typename T = void>
struct fennec::enable_if< B, T >
If B is true, define a public member type type. Otherwise, there is no member.
Example Usage
template<typename TypeT,
TypeT conditional_func() { return 0; }
typename enable_if< B, T >::type enable_if_t
Shorthand for typename enable_if<B, T>::type
Definition conditional_types.h:157
- Template Parameters
-
| B | A boolean value |
| T | The type to conditionally define |
The documentation for this struct was generated from the following file: