Dependent Bool

#include <m3ta/dependentbool>

Creates a dependency to some dummy types and returns a bool value.

See Also

Static Assert.


template<typename ... T_Dummies>
constexpr bool
dependentBool(bool value) noexcept
Template Parameters:
  • T_Dummies — Types to trigger the dependency.
Function Parameters:
  • valuebool value to return.


The bool value passed as argument.

Usage Examples

bool value1 = m3ta::dependentBool<int, float>(true); // true
bool value2 = m3ta::dependentBool<int, float>(false); // false