Summary
This episode explains reference-qualified member functions in C++, which allow different function implementations based on whether the object is an lvalue or rvalue. Jason demonstrates how to specify lvalue-qualified (&) and rvalue-qualified (&&) member functions, and shows how they affect overload resolution. He explains that these qualifiers enable optimization opportunities, particularly for rvalue references where internal data can be moved rather than copied.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[dcl.ref]74% match -
[optional]40% match -
[stringstream]40% match