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

Classes

class  array< _Ty, _Size >
 
class  array< _Ty, 0 >
 

Macros

#define _ARRAY_
 

Functions

template<class _Ty , size_t _Size, class = enable_if_t<_Size == 0 || _Is_swappable<_Ty>::value>>
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>
constexpr _Ty & get (array< _Ty, _Size > &_Arr) _NOEXCEPT
 
template<size_t _Idx, class _Ty , size_t _Size>
constexpr const _Ty & get (const array< _Ty, _Size > &_Arr) _NOEXCEPT
 
template<size_t _Idx, class _Ty , size_t _Size>
constexpr _Ty && get (array< _Ty, _Size > &&_Arr) _NOEXCEPT
 

Macro Definition Documentation

#define _ARRAY_

Function Documentation

template<size_t _Idx, class _Ty , size_t _Size>
constexpr _Ty& get ( array< _Ty, _Size > &  _Arr)
494  { // return element at _Idx in array _Arr
495  static_assert(_Idx < _Size, "array index out of bounds");
496  return (_Arr._Elems[_Idx]);
497  }
_Ty _Elems[_Size]
Definition: array:212
_Size
Definition: vcruntime_string.h:36
template<size_t _Idx, class _Ty , size_t _Size>
constexpr const _Ty& get ( const array< _Ty, _Size > &  _Arr)
503  { // return element at _Idx in array _Arr
504  static_assert(_Idx < _Size, "array index out of bounds");
505  return (_Arr._Elems[_Idx]);
506  }
_Ty _Elems[_Size]
Definition: array:212
_Size
Definition: vcruntime_string.h:36
template<size_t _Idx, class _Ty , size_t _Size>
constexpr _Ty&& get ( array< _Ty, _Size > &&  _Arr)
512  { // return element at _Idx in array _Arr
513  static_assert(_Idx < _Size, "array index out of bounds");
514  return (_STD move(_Arr._Elems[_Idx]));
515  }
_Ty _Elems[_Size]
Definition: array:212
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1290
_Size
Definition: vcruntime_string.h:36
template<class _Ty , size_t _Size>
bool operator!= ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
452  { // test for array inequality
453  return (!(_Left == _Right));
454  }
template<class _Ty , size_t _Size>
bool operator< ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
460  { // test if _Left < _Right for arrays
461  return (_STD lexicographical_compare(_Left.begin(), _Left.end(),
462  _Right.begin(), _Right.end()));
463  }
iterator begin() _NOEXCEPT
Definition: array:51
iterator end() _NOEXCEPT
Definition: array:61
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 
)
477  { // test if _Left <= _Right for arrays
478  return (!(_Right < _Left));
479  }
template<class _Ty , size_t _Size>
bool operator== ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
444  { // test for array equality
445  return (_STD equal(_Left.begin(), _Left.end(), _Right.begin()));
446  }
iterator begin() _NOEXCEPT
Definition: array:51
bool equal(_InIt1 _First1, _InIt1 _Last1, _InIt2 _First2)
Definition: memory:611
iterator end() _NOEXCEPT
Definition: array:61
template<class _Ty , size_t _Size>
bool operator> ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
469  { // test if _Left > _Right for arrays
470  return (_Right < _Left);
471  }
template<class _Ty , size_t _Size>
bool operator>= ( const array< _Ty, _Size > &  _Left,
const array< _Ty, _Size > &  _Right 
)
485  { // test if _Left >= _Right for arrays
486  return (!(_Left < _Right));
487  }
template<class _Ty , size_t _Size, class = enable_if_t<_Size == 0 || _Is_swappable<_Ty>::value>>
void swap ( array< _Ty, _Size > &  _Left,
array< _Ty, _Size > &  _Right 
)
436  { // swap arrays
437  return (_Left.swap(_Right));
438  }
void swap(_Myt &_Other) _NOEXCEPT_OP(_Is_nothrow_swappable< _Ty >
Definition: array:214