Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::conditional< B, T, F > Struct Template Reference

Select a type based if the conditional is true or false. More...

Public Types

typedef F type
 Type for false condition.
 

Detailed Description

template<bool B, class T, class F>
struct Burger::conditional< B, T, F >

Select a type based if the conditional is true or false.


The first parameter is a conditional boolean. This will be evaluated as true or false. The second parameter is the type used if the condition is true and the third parameter is the type used if the condition is false.

Note
This is functionally the same as std::conditional<>
Template Parameters
BCondition to test for true.
TType of the result if condition is true.
FType of the result if condition is false.
See also
enable_if

Member Typedef Documentation

◆ type

template<bool B, class T , class F >
F Burger::conditional< B, T, F >::type

Type for false condition.