Variable length struct in C++
since it’s a POD, everything works just like it did in C. - SO
- Multiple return values (structured bindings) with unmovable types and guaranteed RVO in C++17
- Array-to-pointer decay - The only “connection” between T[n] and T[m] is that both types can implicitly be converted to T*, and the result of this conversion is a pointer to the first element of the array.
Written on June 3, 2021, Last update on June 13, 2021
c++
array