STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
array< _Ty, 0 > Class Template Reference

Public Types

typedef array< _Ty, 0 > _Myt
 
typedef _Ty value_type
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef _Ty * pointer
 
typedef const _Ty * const_pointer
 
typedef _Ty & reference
 
typedef const _Ty & const_reference
 
typedef _Array_iterator< _Ty, 0 > iterator
 
typedef _Array_const_iterator< _Ty, 0 > const_iterator
 
typedef _STD reverse_iterator< iteratorreverse_iterator
 
typedef _STD reverse_iterator< const_iteratorconst_reverse_iterator
 

Public Member Functions

void fill (const _Ty &)
 
void swap (_Myt &) _NOEXCEPT
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator crend () const
 
constexpr size_type size () const
 
constexpr size_type max_size () const
 
constexpr bool empty () const
 
reference at (size_type)
 
const_reference at (size_type) const
 
reference operator[] (size_type)
 
const_reference operator[] (size_type) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
_Ty * data ()
 
const _Ty * data () const
 
void _Xran () const
 

Public Attributes

_Ty _Elems [1]
 

Member Typedef Documentation

template<class _Ty >
typedef array<_Ty, 0> array< _Ty, 0 >::_Myt
template<class _Ty >
typedef _Array_const_iterator<_Ty, 0> array< _Ty, 0 >::const_iterator
template<class _Ty >
typedef const _Ty* array< _Ty, 0 >::const_pointer
template<class _Ty >
typedef const _Ty& array< _Ty, 0 >::const_reference
template<class _Ty >
typedef _STD reverse_iterator<const_iterator> array< _Ty, 0 >::const_reverse_iterator
template<class _Ty >
typedef ptrdiff_t array< _Ty, 0 >::difference_type
template<class _Ty >
typedef _Array_iterator<_Ty, 0> array< _Ty, 0 >::iterator
template<class _Ty >
typedef _Ty* array< _Ty, 0 >::pointer
template<class _Ty >
typedef _Ty& array< _Ty, 0 >::reference
template<class _Ty >
typedef _STD reverse_iterator<iterator> array< _Ty, 0 >::reverse_iterator
template<class _Ty >
typedef size_t array< _Ty, 0 >::size_type
template<class _Ty >
typedef _Ty array< _Ty, 0 >::value_type

Member Function Documentation

template<class _Ty >
void array< _Ty, 0 >::_Xran ( ) const
inline
423  { // report an out_of_range error
424  _Xout_of_range("invalid array<T, 0> subscript");
425  }
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Xout_of_range(_In_z_ const char *)
template<class _Ty >
reference array< _Ty, 0 >::at ( size_type  )
inline
331  { // subscript mutable sequence with checking
332  _Xran();
333  }
void _Xran() const
Definition: array:422
template<class _Ty >
const_reference array< _Ty, 0 >::at ( size_type  ) const
inline
336  { // subscript nonmutable sequence with checking
337  _Xran();
338  }
void _Xran() const
Definition: array:422
template<class _Ty >
reference array< _Ty, 0 >::back ( )
inline
389  { // return last element of mutable sequence
390  #if _ITERATOR_DEBUG_LEVEL == 2
391  _DEBUG_ERROR("array<T, 0>::back() invalid");
392 
393  #elif _ITERATOR_DEBUG_LEVEL == 1
395  #endif /* _ITERATOR_DEBUG_LEVEL */
396 
397  return (_Elems[0]);
398  }
_Ty _Elems[1]
Definition: array:427
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:392
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
const_reference array< _Ty, 0 >::back ( ) const
inline
401  { // return last element of nonmutable sequence
402  #if _ITERATOR_DEBUG_LEVEL == 2
403  _DEBUG_ERROR("array<T, 0>::back() invalid");
404 
405  #elif _ITERATOR_DEBUG_LEVEL == 1
407  #endif /* _ITERATOR_DEBUG_LEVEL */
408 
409  return (_Elems[0]);
410  }
_Ty _Elems[1]
Definition: array:427
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:392
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
iterator array< _Ty, 0 >::begin ( )
inline
256  { // return iterator for beginning of mutable sequence
257  return (iterator(0, 0));
258  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:236
template<class _Ty >
const_iterator array< _Ty, 0 >::begin ( ) const
inline
261  { // return iterator for beginning of nonmutable sequence
262  return (iterator(0, 0));
263  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:236
template<class _Ty >
const_iterator array< _Ty, 0 >::cbegin ( ) const
inline
296  { // return iterator for beginning of nonmutable sequence
297  return (iterator(0, 0));
298  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:236
template<class _Ty >
const_iterator array< _Ty, 0 >::cend ( ) const
inline
301  { // return iterator for end of nonmutable sequence
302  return (iterator(0, 0));
303  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:236
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::crbegin ( ) const
inline
306  { // return iterator for beginning of reversed nonmutable sequence
307  return (rbegin());
308  }
reverse_iterator rbegin()
Definition: array:275
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::crend ( ) const
inline
311  { // return iterator for end of reversed nonmutable sequence
312  return (rend());
313  }
reverse_iterator rend()
Definition: array:285
template<class _Ty >
_Ty* array< _Ty, 0 >::data ( )
inline
413  { // return pointer to mutable data array
414  return (_Elems);
415  }
_Ty _Elems[1]
Definition: array:427
template<class _Ty >
const _Ty* array< _Ty, 0 >::data ( ) const
inline
418  { // return pointer to nonmutable data array
419  return (_Elems);
420  }
_Ty _Elems[1]
Definition: array:427
template<class _Ty >
constexpr bool array< _Ty, 0 >::empty ( ) const
inline
326  { // test if sequence is empty
327  return (true);
328  }
template<class _Ty >
iterator array< _Ty, 0 >::end ( )
inline
266  { // return iterator for end of mutable sequence
267  return (iterator(0, 0));
268  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:236
template<class _Ty >
const_iterator array< _Ty, 0 >::end ( ) const
inline
271  { // return iterator for beginning of nonmutable sequence
272  return (iterator(0, 0));
273  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:236
template<class _Ty >
void array< _Ty, 0 >::fill ( const _Ty &  )
inline
248  { // assign value to all elements
249  }
template<class _Ty >
reference array< _Ty, 0 >::front ( )
inline
365  { // return first element of mutable sequence
366  #if _ITERATOR_DEBUG_LEVEL == 2
367  _DEBUG_ERROR("array<T, 0>::front() invalid");
368 
369  #elif _ITERATOR_DEBUG_LEVEL == 1
371  #endif /* _ITERATOR_DEBUG_LEVEL */
372 
373  return (_Elems[0]);
374  }
_Ty _Elems[1]
Definition: array:427
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:392
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
const_reference array< _Ty, 0 >::front ( ) const
inline
377  { // return first element of nonmutable sequence
378  #if _ITERATOR_DEBUG_LEVEL == 2
379  _DEBUG_ERROR("array<T, 0>::front() invalid");
380 
381  #elif _ITERATOR_DEBUG_LEVEL == 1
383  #endif /* _ITERATOR_DEBUG_LEVEL */
384 
385  return (_Elems[0]);
386  }
_Ty _Elems[1]
Definition: array:427
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:392
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
constexpr size_type array< _Ty, 0 >::max_size ( ) const
inline
321  { // return maximum possible length of sequence
322  return (0);
323  }
template<class _Ty >
reference array< _Ty, 0 >::operator[] ( size_type  )
inline
341  { // subscript mutable sequence
342  #if _ITERATOR_DEBUG_LEVEL == 2
343  _DEBUG_ERROR("array subscript out of range");
344 
345  #elif _ITERATOR_DEBUG_LEVEL == 1
347  #endif /* _ITERATOR_DEBUG_LEVEL */
348 
349  return (_Elems[0]);
350  }
_Ty _Elems[1]
Definition: array:427
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:392
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
const_reference array< _Ty, 0 >::operator[] ( size_type  ) const
inline
353  { // subscript nonmutable sequence
354  #if _ITERATOR_DEBUG_LEVEL == 2
355  _DEBUG_ERROR("array subscript out of range");
356 
357  #elif _ITERATOR_DEBUG_LEVEL == 1
359  #endif /* _ITERATOR_DEBUG_LEVEL */
360 
361  return (_Elems[0]);
362  }
_Ty _Elems[1]
Definition: array:427
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:392
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
reverse_iterator array< _Ty, 0 >::rbegin ( )
inline
276  { // return iterator for beginning of reversed mutable sequence
277  return (reverse_iterator(end()));
278  }
iterator end()
Definition: array:265
_STD reverse_iterator< iterator > reverse_iterator
Definition: array:238
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::rbegin ( ) const
inline
281  { // return iterator for beginning of reversed nonmutable sequence
282  return (const_reverse_iterator(end()));
283  }
iterator end()
Definition: array:265
_STD reverse_iterator< const_iterator > const_reverse_iterator
Definition: array:239
template<class _Ty >
reverse_iterator array< _Ty, 0 >::rend ( )
inline
286  { // return iterator for end of reversed mutable sequence
287  return (reverse_iterator(begin()));
288  }
iterator begin()
Definition: array:255
_STD reverse_iterator< iterator > reverse_iterator
Definition: array:238
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::rend ( ) const
inline
291  { // return iterator for end of reversed nonmutable sequence
292  return (const_reverse_iterator(begin()));
293  }
iterator begin()
Definition: array:255
_STD reverse_iterator< const_iterator > const_reverse_iterator
Definition: array:239
template<class _Ty >
constexpr size_type array< _Ty, 0 >::size ( ) const
inline
316  { // return length of sequence
317  return (0);
318  }
template<class _Ty >
void array< _Ty, 0 >::swap ( _Myt )
inline
252  { // swap contents with _Other
253  }

Member Data Documentation

template<class _Ty >
_Ty array< _Ty, 0 >::_Elems[1]

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