And<... > Struct Template Reference 系统

#include <apibase.h>

详细描述

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

使用 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)
定义: compilerdetection.h:380