STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Namespaces | Macros | Functions
array File Reference
#include <algorithm>
#include <iterator>
#include <tuple>

Classes

class  array< _Ty, _Size >
 
class  array< _Ty, 0 >
 
struct  tuple_size< array< _Ty, _Size > >
 
struct  tuple_element< _Idx, array< _Ty, _Size > >
 

Namespaces

 tr1
 

Macros

#define _ARRAY_
 

Functions

template<class _Ty , size_t _Size>
void swap (array< _Ty, _Size > &_Left, array< _Ty, _Size > &_Right) _NOEXCEPT_OP(_NOEXCEPT_OP(_Left.swap(_Right)))
 
template<class _Ty , size_t _Size>
bool operator== (const array< _Ty, _Size > &_Left, const array< _Ty, _Size > &_Right)
 
template<class _Ty , size_t _Size>
bool operator!= (const array< _Ty, _Size > &_Left, const array< _Ty, _Size > &_Right)
 
template<class _Ty , size_t _Size>
bool operator< (const array< _Ty, _Size > &_Left, const array< _Ty, _Size > &_Right)
 
template<class _Ty , size_t _Size>
bool operator> (const array< _Ty, _Size > &_Left, const array< _Ty, _Size > &_Right)
 
template<class _Ty , size_t _Size>
bool operator<= (const array< _Ty, _Size > &_Left, const array< _Ty, _Size > &_Right)
 
template<class _Ty , size_t _Size>
bool operator>= (const array< _Ty, _Size > &_Left, const array< _Ty, _Size > &_Right)
 
template<size_t _Idx, class _Ty , size_t _Size>
_Ty & get (array< _Ty, _Size > &_Arr) _NOEXCEPT
 
template<size_t _Idx, class _Ty , size_t _Size>
const _Ty & get (const array< _Ty, _Size > &_Arr) _NOEXCEPT
 
template<size_t _Idx, class _Ty , size_t _Size>
_Ty && get (array< _Ty, _Size > &&_Arr) _NOEXCEPT
 

Macro Definition Documentation

#define _ARRAY_

Function Documentation

template<size_t _Idx, class _Ty , size_t _Size>
_Ty& get ( array< _Ty, _Size > &  _Arr)
507  { // return element at _Idx in array _Arr
508  static_assert(_Idx < _Size, "array index out of bounds");
509  return (_Arr[_Idx]);
510  }
_Check_return_ _In_ long _Size
Definition: io.h:325
template<size_t _Idx, class _Ty , size_t _Size>
const _Ty& get ( const array< _Ty, _Size > &  _Arr)
516  { // return element at _Idx in array _Arr
517  static_assert(_Idx < _Size, "array index out of bounds");
518  return (_Arr[_Idx]);
519  }
_Check_return_ _In_ long _Size
Definition: io.h:325
template<size_t _Idx, class _Ty , size_t _Size>
_Ty&& get ( array< _Ty, _Size > &&  _Arr)
525  { // return element at _Idx in array _Arr
526  static_assert(_Idx < _Size, "array index out of bounds");
527  return (_STD move(_Arr[_Idx]));
528  }
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447
_Check_return_ _In_ long _Size
Definition: io.h:325
template<class _Ty , size_t _Size>
bool operator!= ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
448  { // test for array inequality
449  return (!(_Left == _Right));
450  }
template<class _Ty , size_t _Size>
bool operator< ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
456  { // test if _Left < _Right for arrays
457  return (_STD lexicographical_compare(_Left.begin(), _Left.end(),
458  _Right.begin(), _Right.end()));
459  }
iterator begin() _NOEXCEPT
Definition: array:56
iterator end() _NOEXCEPT
Definition: array:66
bool lexicographical_compare(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2, _InIt2 _Last2)
Definition: memory:830
template<class _Ty , size_t _Size>
bool operator<= ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
473  { // test if _Left <= _Right for arrays
474  return (!(_Right < _Left));
475  }
template<class _Ty , size_t _Size>
bool operator== ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
440  { // test for array equality
441  return (_STD equal(_Left.begin(), _Left.end(), _Right.begin()));
442  }
iterator begin() _NOEXCEPT
Definition: array:56
bool equal(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
Definition: memory:611
iterator end() _NOEXCEPT
Definition: array:66
template<class _Ty , size_t _Size>
bool operator> ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
465  { // test if _Left > _Right for arrays
466  return (_Right < _Left);
467  }
template<class _Ty , size_t _Size>
bool operator>= ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
481  { // test if _Left >= _Right for arrays
482  return (!(_Left < _Right));
483  }
template<class _Ty , size_t _Size>
void swap ( array< _Ty, _Size > &  _Left,
array< _Ty, _Size > &  _Right 
)
432  { // swap arrays
433  return (_Left.swap(_Right));
434  }
void swap(_Myt &_Other) _NOEXCEPT_OP(_NOEXCEPT_OP(_Swap_adl(_Elems[0]