Daily bit(e) of C++ | std::invoke_r
Daily bit(e) of C++ #422, Explicitly specifying the result type when invoking invocables using C++23 std::invoke_r.
When using std::invoke in generic code, you can run into situations when the result type of the invocation is inconvenient.
The C++23 std::invoke_r allows the return type to be explicitly specified, avoiding cumbersome wrapping code.