stl_iterator.h File Reference
Detailed Description
This is an internal header file, included by other library headers. You should not attempt to use it directly.
This file implements reverse_iterator, back_insert_iterator, front_insert_iterator, insert_iterator, normal_iterator, and their supporting functions and overloaded operators.
Definition in file stl_iterator.h.
Go to the source code of this file.
Namespaces
Classes
Defines
Functions
- template<typename Container> back_insert_iterator< Container > back_inserter (Container &x)
- template<typename Container> front_insert_iterator< Container > front_inserter (Container &x)
- template<typename Container, typename Iterator> insert_iterator< Container > inserter (Container &x, Iterator __i)
-
template<typename Iterator, typename Container> bool operator!= (const normal_iterator< Iterator, Container > &__lhs, const normal_iterator< Iterator, Container > &__rhs)
-
template<typename IteratorL, typename IteratorR, typename Container> bool operator!= (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
-
template<typename Iterator, typename Container> normal_iterator< Iterator,
Container > operator+ (typename normal_iterator< Iterator, Container >::difference_type n, const normal_iterator< Iterator, Container > &__i)
-
template<typename IteratorL, typename IteratorR, typename Container> normal_iterator< IteratorL,
Container >::difference_type operator- (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
-
template<typename Iterator, typename Container> bool operator< (const normal_iterator< Iterator, Container > &__lhs, const normal_iterator< Iterator, Container > &__rhs)
-
template<typename IteratorL, typename IteratorR, typename Container> bool operator< (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
-
template<typename Iterator, typename Container> bool operator<= (const normal_iterator< Iterator, Container > &__lhs, const normal_iterator< Iterator, Container > &__rhs)
-
template<typename IteratorL, typename IteratorR, typename Container> bool operator<= (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
-
template<typename Iterator, typename Container> bool operator== (const normal_iterator< Iterator, Container > &__lhs, const normal_iterator< Iterator, Container > &__rhs)
-
template<typename IteratorL, typename IteratorR, typename Container> bool operator== (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
-
template<typename Iterator, typename Container> bool operator> (const normal_iterator< Iterator, Container > &__lhs, const normal_iterator< Iterator, Container > &__rhs)
-
template<typename IteratorL, typename IteratorR, typename Container> bool operator> (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
-
template<typename Iterator, typename Container> bool operator>= (const normal_iterator< Iterator, Container > &__lhs, const normal_iterator< Iterator, Container > &__rhs)
-
template<typename IteratorL, typename IteratorR, typename Container> bool operator>= (const normal_iterator< IteratorL, Container > &__lhs, const normal_iterator< IteratorR, Container > &__rhs)
Function Documentation
back_insert_iterator<Container> back_inserter |
( |
Container & |
x |
) |
[inline] |
|
|
- Parameters:
-
| x | A container of arbitrary type. |
- Returns:
- An instance of back_insert_iterator working on
x .
This wrapper function helps in creating back_insert_iterator instances. Typing the name of the iterator requires knowing the precise full type of the container, which can be tedious and impedes generic programming. Using this function lets you take advantage of automatic template parameter deduction, making the compiler match the correct types for you. Definition at line 408 of file stl_iterator.h. |
front_insert_iterator<Container> front_inserter |
( |
Container & |
x |
) |
[inline] |
|
|
- Parameters:
-
| x | A container of arbitrary type. |
- Returns:
- An instance of front_insert_iterator working on
x .
This wrapper function helps in creating front_insert_iterator instances. Typing the name of the iterator requires knowing the precise full type of the container, which can be tedious and impedes generic programming. Using this function lets you take advantage of automatic template parameter deduction, making the compiler match the correct types for you. Definition at line 482 of file stl_iterator.h. |
insert_iterator<Container> inserter |
( |
Container & |
x, |
|
|
Iterator |
__i |
|
) |
[inline] |
|
|
- Parameters:
-
| x | A container of arbitrary type. |
- Returns:
- An instance of insert_iterator working on
x .
This wrapper function helps in creating insert_iterator instances. Typing the name of the iterator requires knowing the precise full type of the container, which can be tedious and impedes generic programming. Using this function lets you take advantage of automatic template parameter deduction, making the compiler match the correct types for you. Definition at line 578 of file stl_iterator.h.
References std::operator+(). |
bool operator== |
( |
const reverse_iterator< Iterator > & |
x, |
|
|
const reverse_iterator< Iterator > & |
y |
|
) |
[inline] |
|
|
- Parameters:
-
| x | A reverse_iterator. |
| y | A reverse_iterator. |
- Returns:
- A simple bool.
Reverse iterators forward many operations to their underlying base() iterators. Others are implemented in terms of one another. Definition at line 288 of file stl_iterator.h. |
Generated on Sun Sep 12 15:50:04 2004 for libstdc++ source by
1.3.8