,如果类型是在默认构造,不会引发测试。
template<class Ty>
struct has_nothrow_default_constructor;
参数
- Ty
查询的类型。
备注
该类型特性的实例适合,如果类型 Ty 有一个 nothrow 默认构造函数,否则它包含错误。
要求
**标题:**type_traits
命名空间: std
,如果类型是在默认构造,不会引发测试。
template<class Ty>
struct has_nothrow_default_constructor;
该类型特性的实例适合,如果类型 Ty 有一个 nothrow 默认构造函数,否则它包含错误。
**标题:**type_traits
命名空间: std