My activities in C++ have been dormant for a while, so maybe my question isn't appropriate.
I have seen in the definition of concepts a 'strange' syntax like e.g.: {x + 1} -> std::same_as<int>;
Is there a name for the { } -> "operator", resp. when has it been introduced into the standard and for what purpose?
I understand its meaning in the context of defining requirements but would appreciate some further information.
It is not a single operator but what is called a compound requirement and has the form:
(emphasis mine)
This means that
decltype((x+1))must satisfy the constraint imposed bystd::same_as<int>which essentially means that the type deduced by/for the expressionx+1should evaluate to anint.