vector::front
vector::front
reference front();
const_reference front() const;
The member function returns a reference to the first element of the controlled sequence, which must be non-empty.
See the related sample program.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
vector::front
reference front();
const_reference front() const;
The member function returns a reference to the first element of the controlled sequence, which must be non-empty.
See the related sample program.