#include <stl_iterator.h>
Inheritance diagram for std::back_insert_iterator< Container >:
Public Types | |
typedef Container | container_type |
A nested typedef for the type of whatever container you used. | |
typedef Category | iterator_category |
One of the tag types. | |
typedef Type | value_type |
The type "pointed to" by the iterator. | |
typedef Distance | difference_type |
Distance between iterators is represented as this type. | |
typedef Pointer | pointer |
This type represents a pointer-to-value_type. | |
typedef Reference | reference |
This type represents a reference-to-value_type. | |
Public Member Functions | |
back_insert_iterator (Container &x) | |
The only way to create this iterator is with a container. | |
back_insert_iterator & | operator= (typename Container::const_reference value) |
back_insert_iterator & | operator * () |
Simply returns *this. | |
back_insert_iterator & | operator++ () |
Simply returns *this. (This iterator does not "move".). | |
back_insert_iterator | operator++ (int) |
Simply returns *this. (This iterator does not "move".). | |
Protected Attributes | |
Container * | container |
These are output iterators, constructed from a container-of-T. Assigning a T to the iterator appends it to the container using push_back.
Tip: Using the back_inserter function to create these iterators can save typing.
Definition at line 336 of file stl_iterator.h.
typedef Container std::back_insert_iterator< Container >::container_type |
A nested typedef for the type of whatever container you used.
Definition at line 344 of file stl_iterator.h.
typedef Distance std::iterator< Category, Type, Distance, Pointer, Reference >::difference_type [inherited] |
Distance between iterators is represented as this type.
Reimplemented in std::reverse_iterator< Iterator >.
Definition at line 113 of file stl_iterator_base_types.h.
typedef Category std::iterator< Category, Type, Distance, Pointer, Reference >::iterator_category [inherited] |
typedef Pointer std::iterator< Category, Type, Distance, Pointer, Reference >::pointer [inherited] |
This type represents a pointer-to-value_type.
Reimplemented in std::Bit_iterator, std::Bit_const_iterator, std::reverse_iterator< Iterator >, __gnu_cxx::Rope_const_iterator< CharT, Alloc >, and __gnu_cxx::Rope_iterator< CharT, Alloc >.
Definition at line 115 of file stl_iterator_base_types.h.
typedef Reference std::iterator< Category, Type, Distance, Pointer, Reference >::reference [inherited] |
This type represents a reference-to-value_type.
Reimplemented in std::Bit_iterator, std::Bit_const_iterator, std::reverse_iterator< Iterator >, __gnu_cxx::Rope_const_iterator< CharT, Alloc >, and __gnu_cxx::Rope_iterator< CharT, Alloc >.
Definition at line 117 of file stl_iterator_base_types.h.
typedef Type std::iterator< Category, Type, Distance, Pointer, Reference >::value_type [inherited] |
The type "pointed to" by the iterator.
Reimplemented in __gnu_cxx::sequence_buffer< Sequence, Buf_sz >.
Definition at line 111 of file stl_iterator_base_types.h.
std::back_insert_iterator< Container >::back_insert_iterator | ( | Container & | x | ) | [inline, explicit] |
The only way to create this iterator is with a container.
Definition at line 348 of file stl_iterator.h.
back_insert_iterator& std::back_insert_iterator< Container >::operator * | ( | ) | [inline] |
back_insert_iterator std::back_insert_iterator< Container >::operator++ | ( | int | ) | [inline] |
Simply returns *this. (This iterator does not "move".).
Definition at line 380 of file stl_iterator.h.
back_insert_iterator& std::back_insert_iterator< Container >::operator++ | ( | ) | [inline] |
Simply returns *this. (This iterator does not "move".).
Definition at line 375 of file stl_iterator.h.
back_insert_iterator& std::back_insert_iterator< Container >::operator= | ( | typename Container::const_reference | value | ) | [inline] |
value | An instance of whatever type container_type::const_reference is; presumably a reference-to-const T for container<T>. |
Definition at line 362 of file stl_iterator.h.
References std::back_insert_iterator< Container >::container.