ProAnswers.org

How to reseat a reference to make it refer to a different object in c++?

The reference itself isn’t an object; you can’t
separate the reference from the referred-to-object.
Unlike a pointer, once a reference is bound to an object, it can NOT be `reseated’ to another object.
eg: &ref’ is the address of the referred-to-object, not of the reference itself.