Can someone given an example of a "non-const lvalue reference"?
I need to pass an object to a routine where the object's state will be modified, after the routine has completed I expect to use the object with the modified state.
I read elsewhere that I am supposed to pass the object as a: "non-const lvalue reference." What is that and can someone give an example?
Here you are