## NAME

ACE_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);
        void first (const T1 &t1);
        T2 &second (void);
        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);

Constructor.

    ACE_Pair (void);

Default constructor.

    T1 &first (void);

    void first (const T1 &t1);

Get/Set first.

    T2 &second (void);

    void second (const T2 &t2);

Access second.

## AUTHOR

Irfan Pyarali

## TITLE

Defines a pair.

## LIBRARY

ace