stlab.adobe.com Adobe Systems Incorporated

#include <pair.hpp>

Public Types

typedef T1 first_type
 
typedef T2 second_type
 

Public Member Functions

pairoperator= (pair x)
 
 pair ()
 
 pair (move_from< pair > x)
 
 pair (T1 x, T2 y)
 
template<typename U1 , typename U2 >
 pair (const pair< U1, U2 > &p)
 
template<typename U1 , typename U2 >
 pair (const std::pair< U1, U2 > &p)
 
template<typename U1 , typename U2 >
 pair (const aggregate_pair< U1, U2 > &p)
 

Public Attributes

T1 first
 
T2 second
 

Friends

bool operator< (const pair &x, const pair &y)
 
bool operator== (const pair &x, const pair &y)
 
void swap (pair &x, pair &y)
 

Detailed Description

template<typename T1, typename T2 = T1>
struct adobe::pair< T1, T2 >

Definition at line 72 of file pair.hpp.

Member Typedef Documentation

◆ first_type

typedef T1 first_type

Definition at line 74 of file pair.hpp.

◆ second_type

typedef T2 second_type

Definition at line 75 of file pair.hpp.

Constructor & Destructor Documentation

◆ pair() [1/6]

pair ( )

Definition at line 80 of file pair.hpp.

◆ pair() [2/6]

pair ( move_from< pair< T1, T2 > >  x)

Definition at line 82 of file pair.hpp.

◆ pair() [3/6]

pair ( T1  x,
T2  y 
)

Definition at line 86 of file pair.hpp.

◆ pair() [4/6]

pair ( const pair< U1, U2 > &  p)

Definition at line 89 of file pair.hpp.

◆ pair() [5/6]

pair ( const std::pair< U1, U2 > &  p)

Definition at line 92 of file pair.hpp.

◆ pair() [6/6]

pair ( const aggregate_pair< U1, U2 > &  p)

Definition at line 95 of file pair.hpp.

Member Function Documentation

◆ operator=()

pair& operator= ( pair< T1, T2 >  x)

Definition at line 84 of file pair.hpp.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y 
)
friend

Definition at line 100 of file pair.hpp.

◆ operator==

bool operator== ( const pair< T1, T2 > &  x,
const pair< T1, T2 > &  y 
)
friend

Definition at line 97 of file pair.hpp.

◆ swap

void swap ( pair< T1, T2 > &  x,
pair< T1, T2 > &  y 
)
friend

Definition at line 103 of file pair.hpp.

Member Data Documentation

◆ first

T1 first

Definition at line 77 of file pair.hpp.

◆ second

T2 second

Definition at line 78 of file pair.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google