Udostępnij za pośrednictwem


<iterator> Members

Reference

Functions

advance

Increments an iterator by a specified number of positions.

back_inserter

Creates an iterator that can insert elements at the back of a specified container.

distance

Determines the number of increments between the positions addressed by two iterators.

front_inserter

Creates an iterator that can insert elements at the front of a specified container.

inserter

An iterator adaptor that adds a new element to a container at a specified point of insertion.

Operators

operator!=

Tests if the iterator object on the left side of the operator is not equal to the iterator object on the right side.

operator==

Tests if the iterator object on the left side of the operator is equal to the iterator object on the right side.

operator<

Tests if the iterator object on the left side of the operator is less than the iterator object on the right side.

operator<=

Tests if the iterator object on the left side of the operator is less than or equal to the iterator object on the right side.

operator>

Tests if the iterator object on the left side of the operator is greater than the iterator object on the right side.

operator>=

Tests if the iterator object on the left side of the operator is greater than or equal to the iterator object on the right side.

operator+

Adds an offset to an iterator and returns the new reverse_iterator addressing the inserted element at the new offset position.

operator-

Subtracts one iterator from another and returns the difference.

Classes

back_insert_iterator

The template class describes an output iterator object. It inserts elements into a container of type Container, which it accesses through the protected pointer object it stores called container.

bidirectional_iterator_tag

A class that provides a return type for an iterator_category function that represents a bidirectional iterator.

checked_array_iterator

A class that accesses an array using a random access, checked iterator.

checked_iterator

A class that transforms iterators into checked iterators.

forward_iterator_tag

A class that provides a return type for an iterator_category function that represents a forward iterator.

front_insert_iterator

The template class describes an output iterator object. It inserts elements into a container of type Container, which it accesses through the protected pointer object it stores called container.

input_iterator_tag

A class that provides a return type for an iterator_category function that represents an input iterator.

insert_iterator

The template class describes an output iterator object. It inserts elements into a container of type Container, which it accesses through the protected pointer object it stores called container. It also stores the protected iterator object, of class Container::iterator, called iter.

istream_iterator

The template class describes an input iterator object. It extracts objects of class Ty from an input stream, which it accesses through an object it stores, of type pointer to basic_istream<Elem, Tr>.

istreambuf_iterator

The template class describes an input iterator object. It inserts elements of class Elem into an output stream buffer, which it accesses through an object it stores, of type pointer to basic_streambuf<Elem, Tr>.

iterator

The template class is used as a base type for all iterators.

iterator_traits

A template helper class providing critical types that are associated with different iterator types so that they can be referred to in the same way.

ostream_iterator

The template class describes an output iterator object. It inserts objects of class Type into an output stream, which it accesses through an object it stores, of type pointer to basic_ostream<Elem, Tr>.

ostreambuf_iterator Class

The template class describes an output iterator object. It inserts elements of class Elem into an output stream buffer, which it accesses through an object it stores, of type pointer to basic_streambuf<Elem, Tr>.

output_iterator_tag

A class that provides a return type for iterator_category function that represents an output iterator.

random_access_iterator_tag

A class that provides a return type for iterator_category function that represents a random-access iterator.

reverse_iterator

The template class describes an object that behaves like a random-access iterator, only in reverse.

See Also

Reference

<iterator>

Thread Safety in the Standard C++ Library

Standard Template Library