From cppref
Like a reference, a structured binding is an alias to an existing object. Unlike a reference, the type of a structured binding does not have to be a reference type.
For example:
int a[2] = { 1, 2 };
auto [x, y] = a;
x
and y
are aliases rather than references. My question:
How to implement a type check function like is_alias_v<decltype(x)>
?