stl_iterator.h File Reference
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
|
Namespaces |
namespace | std |
namespace | __gnu_cxx |
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) |
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.
Function Documentation
template<typename Container> |
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 391 of file stl_iterator.h. |
template<typename Container> |
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 462 of file stl_iterator.h. |
template<typename Container, typename Iterator> |
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 555 of file stl_iterator.h. |
template<typename Iterator> |
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 286 of file stl_iterator.h. |
template<typename Iterator> |
reverse_iterator<Iterator> operator+ |
( |
typename reverse_iterator< Iterator >::difference_type |
n, |
|
|
const reverse_iterator< Iterator > & |
x |
|
) |
[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 316 of file stl_iterator.h. |
template<typename Iterator> |
reverse_iterator<Iterator>::difference_type 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 310 of file stl_iterator.h.
References std::reverse_iterator< Iterator >::base(). |
template<typename Iterator> |
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 280 of file stl_iterator.h.
References std::reverse_iterator< Iterator >::base(). |
template<typename Iterator> |
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 298 of file stl_iterator.h. |
template<typename Iterator> |
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 274 of file stl_iterator.h.
References std::reverse_iterator< Iterator >::base(). |
template<typename Iterator> |
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 292 of file stl_iterator.h. |
template<typename Iterator> |
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 304 of file stl_iterator.h. |
Generated on Thu Feb 10 23:23:33 2005 for libstdc++-v3 Source by
1.4.0