Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
select_value Struct Reference

Select one of two arbitrary values. More...

Detailed Description

Select one of two arbitrary values.


A template that sets a constexpr const member variable value with either the true or false entry based on the value passed in the first term.

// Returns 6
uint32_t x = Burger::select_value<Burger::is_signed<int>::value, uint32_t,
6, 9>::value;
// Returns 9
int8_t y = Burger::select_value<Burger::is_signed<unsigned int>::value,
int8_t, 6, 9>::value;
static constexpr const T value
Encapsulated value.
Definition burger.h:4791
Parameters
Bbool to determine whether to return the _True or _False value.
Template Parameters
TType of the return value, must be a non floating point data type.
Parameters
_TrueValue to return if B is true.
_FalseValue to return if B is false.