Namespaces
Variants
Views
Actions

std::iterator

From cppreference.com
< cpp‎ | iterator
Revision as of 14:47, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <iterator>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td class="t-dcl-nopad">
template<

    class Category,
    class T,
    class Distance = std::ptrdiff_t,
    class Pointer = T*,
    class Reference = T&

> struct iterator;
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

std::iterator is the base class provided to simplify definitions of the required types for iterators.

Member types

Member type Definition
value_type T
difference_type Distance
pointer Pointer
reference Reference
iterator_category Category

See also

Template:cpp/iterator/dcl list iterator traitsTemplate:cpp/iterator/dcl list iterator tags