Answers for "cpp class access array member by different name"

C++
0

cpp class access array member by different name

struct U
{
    int   v[2];
    int&  x;
    int&  y;
};

U::U()
    : x(v[0])
    , y(v[1])
{}
Posted by: Guest on February-21-2021

Code answers related to "cpp class access array member by different name"

Browse Popular Code Answers by Language