Reference

ACE_Reference_Pair(3)

NAME

ACE_Reference_Pair

SYNOPSIS

#include <ace/Pair_T.h>
template<class T1, class T2>
class ACE_Reference_Pair
{
  public:
    typedef T1 first_type;
    typedef T2 second_type;
    ACE_Reference_Pair (T1 &t1, T2 &t2);
    T1 &first (void);
    T2 &second (void);
  protected:
    T1 &first_;
    T2 &second_;
};

DESCRIPTION

Similar to the STL pair (but restricted to holding references and not copies).

Traits.

typedef T1 first_type;

typedef T2 second_type;

Initialization and termination methods.

ACE_Reference_Pair (T1 &t1, T2 &t2);

Constructor.

T1 &first (void);

Access first.

T2 &second (void);

Access second.

AUTHOR

Irfan Pyarali

TITLE

Defines a pair that only hold references.

LIBRARY

ace