In C++ there isn't a standard-compliant way of creating named aliases of c-like array elements. In certain contexts, it is preferred to access these these array elements with a named identifier that is bounded to that particular array entry, e.g:
union
{
float my_vec[3];
struct
{
float x, y, z;
};
};
However, anonymous structs/classes are only