<<< std::vector access | Index | std::vector as a stack >>> |
Access to elements at both ends of the vector is made very easy
Again, both can be used on either side of assignment:
reference front(); const_reference front() const; reference back(); const_reference back() const;
<<< std::vector access | Index | std::vector as a stack >>> |