Distinct Types & Type Aliases
- Uses the uniform
aliassyntax. - Regular type aliases are the same as C
typedef, C3typedefcreates a distinct type. - Distinct types are type aliases that doesn’t implicitly convert to the aliased type.
typedef inlinetypes can automatically convert to its underlying type and inherit the methods of its underlying type, but otherwise works as distinct types.