I have a member variable of type vector (where is T is a custom class, but it could be int as well.)
I have a function from which I want to return a po
If you have a const vector you cannot modify the container, nor can you modify any of the elements in the container. You don't need a const vector to achieve those semantics.