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 ispublicrather thanprivate. structcannot declare a template type parameter or a template template parameter. A type parameter usesclassortypename. Until C++17 a template template parameter usesclass; since C++17 it may also usetypename.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents