struct
suggest changeInterchangeable with class
, except for the following differences:
- If a class type is defined using the keyword
struct
, then the default accessibility of bases and members ispublic
rather thanprivate
. struct
cannot be used to declare a template type parameter or template template parameter; onlyclass
can.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents