When were Lvalue references introduced in C++?
A google search for this question returns for me articles with emphasis on Rvalue references. My question is about Lvalue references (a single &).
In what version of C++ were they introduced?
When were Lvalue references introduced in C++?
A google search for this question returns for me articles with emphasis on Rvalue references. My question is about Lvalue references (a single &).
In what version of C++ were they introduced?
References were present in the first edition of "The C++ Programming Language" in 1985, before the language was standardized.
But they existed since it was renamed from "C with Classes" to "C++" in 1983.
See 3.3 in http://www.stroustrup.com/hopl2.pdf.