赞
踩
namespace std
{
template <typename T ,T val>
struct integral_constant
{
static constexpr T value=val;
typedef T value_type;
typedef integral_constant<T,val> type;
constexpr operator value_type(){
return value;
}
}
typedef integral_constant<bool,true> true_type;
typedef integral_constant<bool,false> false_type;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。