---
name: "ACE_Reference_Pair"
section: "3"
platform: "linux"
package: "libace-doc"
version: "5.0.7-4"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/ACE_Reference_Pair"
---

# 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
