I have a method that returns const A &.
If I want to use auto, what is the right way to do it. Is this OK?
const auto &items = someObject.someMethod();
I see some people do this:
auto &items = someObject.someMethod();
I am not sure which one to use, and what are the differences really...
Edit:
In this case, are these two equivalent?
auto items = someObject.someMethod();
auto &items = someObject.someMethod();