stl_pair.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

Functions

template<class T1, class T2>
bool operator== (const pair< T1, T2 > &x, const pair< T1, T2 > &y)
 Two pairs of the same type are equal iff their members are equal.
template<class T1, class T2>
bool operator< (const pair< T1, T2 > &x, const pair< T1, T2 > &y)
 <http://gcc.gnu.org/onlinedocs/libstdc++/20_util/howto.html#pairlt>
template<class T1, class T2>
bool operator!= (const pair< T1, T2 > &x, const pair< T1, T2 > &y)
 Uses operator== to find the result.
template<class T1, class T2>
bool operator> (const pair< T1, T2 > &x, const pair< T1, T2 > &y)
 Uses operator< to find the result.
template<class T1, class T2>
bool operator<= (const pair< T1, T2 > &x, const pair< T1, T2 > &y)
 Uses operator< to find the result.
template<class T1, class T2>
bool operator>= (const pair< T1, T2 > &x, const pair< T1, T2 > &y)
 Uses operator< to find the result.
template<class T1, class T2>
pair< T1, T2 > make_pair (T1 x, T2 y)
 A convenience wrapper for creating a pair from two objects.


Detailed Description

This is an internal header file, included by other library headers. You should not attempt to use it directly.

Definition in file stl_pair.h.


Function Documentation

template<class T1, class T2>
pair<T1, T2> std::make_pair T1  x,
T2  y
[inline]
 

A convenience wrapper for creating a pair from two objects.

Parameters:
x The first object.
y The second object.
Returns:
A newly-constructed pair<> object of the appropriate type.
The standard requires that the objects be passed by reference-to-const, but LWG issue #181 says they should be passed by const value. We follow the LWG by default.

Definition at line 144 of file stl_pair.h.

template<class T1, class T2>
bool std::operator!= const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y
[inline]
 

Uses operator== to find the result.

Definition at line 109 of file stl_pair.h.

template<class T1, class T2>
bool std::operator< const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y
[inline]
 

<http://gcc.gnu.org/onlinedocs/libstdc++/20_util/howto.html#pairlt>

Definition at line 102 of file stl_pair.h.

template<class T1, class T2>
bool std::operator<= const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y
[inline]
 

Uses operator< to find the result.

Definition at line 121 of file stl_pair.h.

template<class T1, class T2>
bool std::operator== const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y
[inline]
 

Two pairs of the same type are equal iff their members are equal.

Definition at line 96 of file stl_pair.h.

References std::pair< T1, T2 >::first, and std::pair< T1, T2 >::second.

template<class T1, class T2>
bool std::operator> const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y
[inline]
 

Uses operator< to find the result.

Definition at line 115 of file stl_pair.h.

template<class T1, class T2>
bool std::operator>= const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y
[inline]
 

Uses operator< to find the result.

Definition at line 127 of file stl_pair.h.


Generated on Fri May 6 01:11:40 2005 for libstdc++-v3 Source by  doxygen 1.4.2