From Jason Turner
Watch on YouTube

Summary

This episode explores C++23's std::forward_like utility in conjunction with C++23's "deducing this" feature. Jason demonstrates how these features can simplify code by replacing multiple reference-qualified member function overloads with a single implementation. The forward_like function preserves the value category (lvalue/rvalue) and const qualification of the original object when forwarding values, making perfect forwarding more straightforward when using the explicit this parameter syntax.

Resources

Tags