stl_pair.h File Reference


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.

Go to the source code of this file.

Namespaces

Classes

Defines

Functions


Function Documentation

pair<T1, T2> 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.

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

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 102 of file stl_pair.h.

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

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 96 of file stl_pair.h.

References pair::first, and pair::second.

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

bool 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 Sun Sep 12 15:50:05 2004 for libstdc++ source by doxygen 1.3.8