64,632
社区成员
发帖
与我相关
我的任务
分享
template <bool>
struct static_assert;
template < >
struct static_assert <true>
{
static const bool result_type = true;
};
/**
* @struct negate
*
* Template metaprogramming object for negating an assertion.
*/
template <bool result>
struct negate;
template < >
struct negate <false>
{
static const bool result_type = true;
};
template < >
struct negate <true>
{
static const bool result_type = false;
};