You are viewing a single comment's thread. Return to all comments →
Since you are practising getting better, it's better style in c++14 to use
Oops, yup, always forget to do that. Thank you!
why is this better style? rbegin/rend are methods in the vector's class... why wouldn't you call them as he originally wrote?
Because begin(), end() functions (not methods) are standard and work for all containers and even arrays like char. They are specialized to work with any container you might write too as long as it follows certain guidelines.