November 2019
Beginner to intermediate
196 pages
2h 43m
English
In this chapter, you will learn about C++ references, specifically about C++ lvalue and rvalue references.
In one word, the purpose of a C++ reference is efficiency.
Additionally, C++ references reduce syntactical complexity, and developers experience difficulties and insecurity when dealing directly with raw pointers.
A C++ reference stores a memory address.
A C++ reference, as well as a pointer, stores a memory address. The difference between a pointer and a reference is that, once initialized, a C++ reference ...
Read now
Unlock full access