Answer
A const reference (const T&) is a reference through which the referent can't be modified. It's useful for read-only aliasing without copying, for function parameters, and because a const reference can bind to a temporary (extending its lifetime to the reference's scope), which a non-const lvalue reference cannot.
const std::string& r = std::string("temp"); // binds temporaryReal-world example A function takes const std::string& so it can be called with both variables and string literals without copying.