Is there a way to write type trait or concept, that can be used to detect if type has a method that can be used in structured binding with particular types? Suppose Q
is class in question. I want to get a compile time bool
constant that tells me if objects of type Q
can be used like so:
Q q;
auto [x1, x2] = q.method();
where x1
, x2
are float
, and bool
respectively.