# Frost::s_range< T > Class Template Reference

Base type : range. More...

`#include <frost_utils_range.h>`

List of all members.

## Public Member Functions

| s_range ()
| Default constructor.
| s_range (const T &mBegin, const T &mEnd)
| Constructor.
| s_range (const s_pair< T, T > &mPair)
| Constructor.
| s_range (const std::pair< T, T > &mPair)
| Constructor.
const T & | Begin () const
const T & | End () const
const T & | begin () const
const T & | end () const

## Private Attributes

s_pair< T, T > | mPair_

## Detailed Description

### template<class T>
class Frost::s_range< T >

Base type : range.

This class is a special case of s_pair.
It should only contain iterators, but you can use it with other types if you know what you're doing.
Note : can be used in the "foreach" macro.

Definition at line 11 of file frost_utils_range.h.

## Constructor & Destructor Documentation

template<class T >

Frost::s_range< T >::s_range | ( |  | ) | `[inline]`

Default constructor.

Definition at line 16 of file frost_utils_range.h.

template<class T >

Frost::s_range< T >::s_range | ( | const T & | mBegin,
|  | const T & | mEnd |
| ) |  |  | `[inline]`

Constructor.

Parameters:

  | mBegin | The begin iterator
  | mEnd | The end iterator

Definition at line 24 of file frost_utils_range.h.

template<class T >

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

Constructor.

Parameters:

  | mPair | The pair to convert

Definition at line 31 of file frost_utils_range.h.

template<class T >

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

Constructor.

Parameters:

  | mPair | The pair to convert

Note:
  Allows full compatiblity with STL.

Definition at line 39 of file frost_utils_range.h.

## Member Function Documentation

template<class T >

const T& Frost::s_range< T >::begin | ( |  | ) | const`[inline]`

Definition at line 53 of file frost_utils_range.h.

template<class T >

const T& Frost::s_range< T >::Begin | ( |  | ) | const`[inline]`

Definition at line 43 of file frost_utils_range.h.

template<class T >

const T& Frost::s_range< T >::end | ( |  | ) | const`[inline]`

Definition at line 58 of file frost_utils_range.h.

template<class T >

const T& Frost::s_range< T >::End | ( |  | ) | const`[inline]`

Definition at line 48 of file frost_utils_range.h.

## Member Data Documentation

template<class T >

s_pair<T, T> Frost::s_range< T >::mPair_`[private]`

Definition at line 65 of file frost_utils_range.h.

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

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