Dependent Bool¶
#include <m3ta/dependentbool>
Creates a dependency to some dummy types and returns a bool value.
See Also
Functions¶
- m3ta::dependentBool
template<typename ... T_Dummies> constexpr bool dependentBool(bool value) noexcept
Template Parameters: - T_Dummies — Types to trigger the dependency.
Function Parameters: - value – bool value to return.
Returns
The bool value passed as argument.
Usage Examples¶
bool value1 = m3ta::dependentBool<int, float>(true); // true
bool value2 = m3ta::dependentBool<int, float>(false); // false