# Frost::s_pair< T, N > Class Template Reference

Base type : pair. More...

`#include <frost_utils_pair.h>`

List of all members.

## Public Member Functions

| s_pair ()
| Default constructor.
| s_pair (const T &mFirst, const N &mSecond)
| Constructor.
| s_pair (const std::pair< T, N > &mPair)
| Conversion constructor.
const T & | First () const
const N & | Second () const
T & | First ()
N & | Second ()

## Private Attributes

std::pair< T, N > | mPair_

## Detailed Description

### template<class T, class N>
class Frost::s_pair< T, N >

Base type : pair.

Not much to say about this one : a typedef could have been enough, but its not possible in the current C++ version (might be with C++0X).

Definition at line 10 of file frost_utils_pair.h.

## Constructor & Destructor Documentation

template<class T, class N>

Frost::s_pair< T, N >::s_pair | ( |  | ) | `[inline]`

Default constructor.

Definition at line 15 of file frost_utils_pair.h.

template<class T, class N>

Frost::s_pair< T, N >::s_pair | ( | const T & | mFirst,
|  | const N & | mSecond |
| ) |  |  | `[inline]`

Constructor.

Parameters:

  | mFirst | The first element of the pair
  | mSecond | The second element of the pair

Definition at line 23 of file frost_utils_pair.h.

template<class T, class N>

Frost::s_pair< T, N >::s_pair | ( | const std::pair< T, N > & | mPair | ) | `[inline]`

Conversion constructor.

Parameters:

  | mPair | The pair to convert

Note:
  Allows full compatiblity with STL.

Definition at line 32 of file frost_utils_pair.h.

## Member Function Documentation

template<class T, class N>

T& Frost::s_pair< T, N >::First | ( |  | ) | `[inline]`

Definition at line 46 of file frost_utils_pair.h.

template<class T, class N>

const T& Frost::s_pair< T, N >::First | ( |  | ) | const`[inline]`

Definition at line 36 of file frost_utils_pair.h.

template<class T, class N>

N& Frost::s_pair< T, N >::Second | ( |  | ) | `[inline]`

Definition at line 51 of file frost_utils_pair.h.

template<class T, class N>

const N& Frost::s_pair< T, N >::Second | ( |  | ) | const`[inline]`

Definition at line 41 of file frost_utils_pair.h.

## Member Data Documentation

template<class T, class N>

std::pair<T, N> Frost::s_pair< T, N >::mPair_`[private]`

Definition at line 58 of file frost_utils_pair.h.

The documentation for this class was generated from the following file:

- D:/Programmation/Sources/Tensor2/Utils/include/frost_utils_pair.h