And<... > Struct Template Reference

#include <apibase.h>

Detailed Description

template<Bool...>
struct maxon::And<... >

Use And to do a compile-time boolean and for a list of values. The result will be in the static member value. Example:

template <typename... ARGS> void Func(const ARG&... arg)
{
static_assert(And<SomeCheck<ARG>::value...>::value, "SomeCheck failed for at least one of ARG.");
}
static_assert
#define static_assert(cond, str)
Definition: compilerdetection.h:380