Variable Acts::Concepts::require

Variable Documentation

template<bool... Bs>
constexpr bool Acts::Concepts::require = std::conjunction<std::bool_constant<Bs>...>::value

Define some sort of “Domain Specific Language” to declare concepts a little more naturally.

These are taken from https://izzys.casa/2016/09/implementing-concepts-in-cxx/ Helper which combines a set of predicates (constexpr bools) with a logical AND. Converts to std::bool_constant.

Template Parameters
  • Bs: The booleans to combine