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 (const T1 &x, const 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> make_pair const T1 &  x,
const 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 145 of file stl_pair.h.

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

Uses operator== to find the result.

Definition at line 108 of file stl_pair.h.

template<class T1, class T2>
bool 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 100 of file stl_pair.h.

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

Uses operator< to find the result.

Definition at line 120 of file stl_pair.h.

template<class T1, class T2>
bool 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 93 of file stl_pair.h.

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

Uses operator< to find the result.

Definition at line 114 of file stl_pair.h.

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

Uses operator< to find the result.

Definition at line 126 of file stl_pair.h.


Generated on Thu Feb 10 23:23:35 2005 for libstdc++-v3 Source by  doxygen 1.4.0