Tag: requires-expression
-
How to reuse the return type of a function call inside a requires expression?
7 I’m writing a concept that checks if a type can be used in an expression that composes 2 functions: template<typename T> concept C = requires(T t) { f(g(t)); }; i.e., I want to check if for a given object t of type T, I can call g(t) and then use the resulting value as…