首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::is_aggregate

Defined in header <type_traits>

?

?

template< class T > struct is_aggregate;

?

(since C++17)

检查T是集料类型.成员常量value等于true如果T是一个聚合类型,并且false否则。

如果std::remove_all_extents_t<T>是%28以外的不完整类型(可能是cv-合格%29)。void...

模板参数

T

-

a type to check

辅助变量模板

template< class T > inline constexpr bool is_aggregate_v = std::is_aggregate<T>::value;

?

(since C++17)

继承自STD:积分[医]常量

成员常数

value static

true if T is an aggregate type , false otherwise (public static member constant)

成员函数

operator bool

converts the object to bool, returns value (public member function)

operator() (C++14)

returns value (public member function)

成员类型

Type

Definition

value_type

bool

type

std::integral_constant<bool, value>

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com