C++ Aggregate - CPP Aggregate

Return to CPP Topics

Aggregates are arrays and class types. A class type is a class, a struct, or a union.

With C++20, the following condition must hold for a class type being an aggregate.

No private or protected non-static data members

No user-declared or inherited constructors

No virtual, private, or protected base classes

No virtual member functions


© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.