NAME

ACE_Pair - Defines a pair.

SYNOPSIS

#include <ace/Pair_T.h>

template<class T1, class T2> class ACE_Pair { public: typedef T1 first_type; typedef T2 second_type; ACE_Pair (const T1 &t1, const T2 &t2); ACE_Pair (void); T1 &first (void); const T1 &first (void) const; void first (const T1 &t1); T2 &second (void); const T2 &second (void) const; void second (const T2 &t2); protected: T1 first_; T2 second_; };

DESCRIPTION

Similar to the STL pair.

Traits.

typedef T1 first_type;

typedef T2 second_type;

Initialization and termination methods.

ACE_Pair (const T1 &t1, const T2 &t2);

ACE_Pair (void);

T1 &first (void);

const T1 &first (void) const;

void first (const T1 &t1);

T2 &second (void);

const T2 &second (void) const;

void second (const T2 &t2);

AUTHOR

Irfan Pyarali irfan@cs.wustl.edu

LIBRARY

ace