C++ Type Keywords struct


Interchangeable 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 is public rather than private.
  • struct cannot be used to declare a template type parameter or template template parameter; only class can.