As a type alias
suggest changeUnnamed class types may also be used when creating type aliases, i.e. via typedef
and using
:
using vec2d = struct { float x; float y; };
typedef struct { float x; float y; } vec2d;
vec2d pt; pt.x = 4.f; pt.y = 3.f;
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents