C++ As a type alias


Example

Unnamed class types may also be used when creating type aliases, i.e. via typedef and using:

C++11
using vec2d = struct {
    float x;
    float y;
};
typedef struct {
    float x;
    float y;
} vec2d;
vec2d pt;
pt.x = 4.f;
pt.y = 3.f;