Namespaces
Variants
Views
Actions

std::end

From cppreference.com
< cpp‎ | iterator
Revision as of 18:23, 20 August 2011 by Nate (Talk | contribs)

Template:cpp/iterator/sidebar

Defined in header <iterator>
template <class C> auto end(C &c) -> decltype(c.end());

template <class C> auto end(const C &c) -> decltype(c.end());

template <class T, size_t N> T* end(T (&array)[N]);

Returns an iterator to the end of the given container Template:cpp or array Template:cpp.

Parameters

c - a container with an end method
array - an array of arbitrary type

Return value

an iterator to the end of Template:cpp or Template:cpp

Example

Template:example cpp