fennec
Loading...
Searching...
No Matches
fennec::enable_if< B, T >

Leverage SFINAE to conditionally enable a function or class at compile-time. More...

#include <conditional_types.h>

Detailed Description

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
BA boolean value
TThe type to conditionally define

The documentation for this struct was generated from the following file: