extraction from The C++ Programming Language 4th. ed., Section 7.7 References, Bjarne Stroustrup To reflect the lvalue/rvalue and const/non-const distinctions, there are three kinds of references: lvalue references: to refer to objects whose value we…