Fixed-size array identifier with the syntax "using"

Consider the following typedef:

typedef int int_array_of_size_4[4];

Is there an equivalent with the new syntax "using"? If so, what is it?

EDIT: this is not a duplicate of this question , since it was a question of overlaying an array of unknown boundary.

+4
source share
1 answer

Yes:

using int_array_of_size_4 = int[4];

live example in wandbox

+10
source

Source: https://habr.com/ru/post/1679247/


All Articles