struct boolean_struct { int member; } typedef int boolean_struct::* boolean_type;
typedef char(&yes)[1];
Please explain what these typedef are doing. I really want to understand them.
struct boolean_struct { int member; }
typedef int boolean_struct::* boolean_type;
typedef char(&yes)[1];
Please explain what these typedef are doing. I really want to understand them.
They create alias for some text for example:
typedef int kappa;
kappa a; // the type of a is int
Better than typedef
is using
alias because it's more readable, and their meaning is the same.
using kappa = int;
kappa a; // the type of a is int