|
vector::endpublic member function
iterator end (); const_iterator end () const; Return iterator to end Returns an iterator referring to the past-the-end element in the vector container.Notice that unlike member vector::back, which returns a reference to the element preceding this one, this function returns a random access iterator. ParametersnoneReturn ValueAn iterator to the element past the end of the sequence.Both iterator and const_iterator are member types. In the vector class template, these are random access iterators. Example
Output:
ComplexityConstant.See also
|