You are viewing a single comment's thread. Return to all comments →
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.