I'm a C++ newbie. Could you tell me why std::vector::front has two definitions, how they are different, and how each of them is called?
The function seems to have two definitions,
- reference front();
- const_reference front() const;
I noticed these two definitions, when I looked up the function on the Web. The following two web sites seem to say the same two definitions.