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

enum  { _EEN_SIZE = 0 }
 
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 assign (const _Ty &)
 
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
 
size_type size () const
 
size_type max_size () const
 
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
 
 __declspec (noreturn) 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 Enumeration Documentation

template<class _Ty >
anonymous enum
Enumerator
_EEN_SIZE 
217 {_EEN_SIZE = 0}; // helper for expression evaluator
Definition: array:217

Member Function Documentation

template<class _Ty >
array< _Ty, 0 >::__declspec ( noreturn  ) const
inline
420  { // report an out_of_range error
421  _Xout_of_range("invalid array<T, 0> subscript");
422  }
template<class _Ty >
void array< _Ty, 0 >::assign ( const _Ty &  )
inline
233  { // assign value to all elements
234  }
template<class _Ty >
reference array< _Ty, 0 >::at ( size_type  )
inline
320  { // subscript mutable sequence with checking
321  static int _Zero = 0;
322 
323  if (_Zero == 0) // to quiet diagnostics
324  _Xran();
325  return (_Elems[0]);
326  }
_Ty _Elems[1]
Definition: array:424
template<class _Ty >
const_reference array< _Ty, 0 >::at ( size_type  ) const
inline
329  { // subscript nonmutable sequence with checking
330  static int _Zero = 0;
331 
332  if (_Zero == 0) // to quiet diagnostics
333  _Xran();
334  return (_Elems[0]);
335  }
_Ty _Elems[1]
Definition: array:424
template<class _Ty >
reference array< _Ty, 0 >::back ( )
inline
386  { // return last element of mutable sequence
387  #if _ITERATOR_DEBUG_LEVEL == 2
388  _DEBUG_ERROR("array<T, 0>::back() invalid");
389 
390  #elif _ITERATOR_DEBUG_LEVEL == 1
392  #endif /* _ITERATOR_DEBUG_LEVEL */
393 
394  return (_Elems[0]);
395  }
_Ty _Elems[1]
Definition: array:424
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:347
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
const_reference array< _Ty, 0 >::back ( ) const
inline
398  { // return last element of nonmutable sequence
399  #if _ITERATOR_DEBUG_LEVEL == 2
400  _DEBUG_ERROR("array<T, 0>::back() invalid");
401 
402  #elif _ITERATOR_DEBUG_LEVEL == 1
404  #endif /* _ITERATOR_DEBUG_LEVEL */
405 
406  return (_Elems[0]);
407  }
_Ty _Elems[1]
Definition: array:424
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:347
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
iterator array< _Ty, 0 >::begin ( )
inline
245  { // return iterator for beginning of mutable sequence
246  return (iterator(0, 0));
247  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:227
template<class _Ty >
const_iterator array< _Ty, 0 >::begin ( ) const
inline
250  { // return iterator for beginning of nonmutable sequence
251  return (iterator(0, 0));
252  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:227
template<class _Ty >
const_iterator array< _Ty, 0 >::cbegin ( ) const
inline
285  { // return iterator for beginning of nonmutable sequence
286  return (iterator(0, 0));
287  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:227
template<class _Ty >
const_iterator array< _Ty, 0 >::cend ( ) const
inline
290  { // return iterator for end of nonmutable sequence
291  return (iterator(0, 0));
292  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:227
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::crbegin ( ) const
inline
295  { // return iterator for beginning of reversed nonmutable sequence
296  return (((const _Myt *)this)->rbegin());
297  }
array< _Ty, 0 > _Myt
Definition: array:218
reverse_iterator rbegin()
Definition: array:264
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::crend ( ) const
inline
300  { // return iterator for end of reversed nonmutable sequence
301  return (((const _Myt *)this)->rend());
302  }
array< _Ty, 0 > _Myt
Definition: array:218
reverse_iterator rend()
Definition: array:274
template<class _Ty >
_Ty* array< _Ty, 0 >::data ( )
inline
410  { // return pointer to mutable data array
411  return (_Elems);
412  }
_Ty _Elems[1]
Definition: array:424
template<class _Ty >
const _Ty* array< _Ty, 0 >::data ( ) const
inline
415  { // return pointer to nonmutable data array
416  return (_Elems);
417  }
_Ty _Elems[1]
Definition: array:424
template<class _Ty >
bool array< _Ty, 0 >::empty ( ) const
inline
315  { // test if sequence is empty
316  return (true);
317  }
template<class _Ty >
iterator array< _Ty, 0 >::end ( )
inline
255  { // return iterator for end of mutable sequence
256  return (iterator(0, 0));
257  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:227
template<class _Ty >
const_iterator array< _Ty, 0 >::end ( ) const
inline
260  { // return iterator for beginning of nonmutable sequence
261  return (iterator(0, 0));
262  }
_Array_iterator< _Ty, 0 > iterator
Definition: array:227
template<class _Ty >
void array< _Ty, 0 >::fill ( const _Ty &  )
inline
237  { // assign value to all elements
238  }
template<class _Ty >
reference array< _Ty, 0 >::front ( )
inline
362  { // return first element of mutable sequence
363  #if _ITERATOR_DEBUG_LEVEL == 2
364  _DEBUG_ERROR("array<T, 0>::front() invalid");
365 
366  #elif _ITERATOR_DEBUG_LEVEL == 1
368  #endif /* _ITERATOR_DEBUG_LEVEL */
369 
370  return (_Elems[0]);
371  }
_Ty _Elems[1]
Definition: array:424
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:347
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
const_reference array< _Ty, 0 >::front ( ) const
inline
374  { // return first element of nonmutable sequence
375  #if _ITERATOR_DEBUG_LEVEL == 2
376  _DEBUG_ERROR("array<T, 0>::front() invalid");
377 
378  #elif _ITERATOR_DEBUG_LEVEL == 1
380  #endif /* _ITERATOR_DEBUG_LEVEL */
381 
382  return (_Elems[0]);
383  }
_Ty _Elems[1]
Definition: array:424
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:347
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
size_type array< _Ty, 0 >::max_size ( ) const
inline
310  { // return maximum possible length of sequence
311  return (0);
312  }
template<class _Ty >
reference array< _Ty, 0 >::operator[] ( size_type  )
inline
338  { // subscript mutable sequence
339  #if _ITERATOR_DEBUG_LEVEL == 2
340  _DEBUG_ERROR("array subscript out of range");
341 
342  #elif _ITERATOR_DEBUG_LEVEL == 1
344  #endif /* _ITERATOR_DEBUG_LEVEL */
345 
346  return (_Elems[0]);
347  }
_Ty _Elems[1]
Definition: array:424
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:347
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
const_reference array< _Ty, 0 >::operator[] ( size_type  ) const
inline
350  { // subscript nonmutable sequence
351  #if _ITERATOR_DEBUG_LEVEL == 2
352  _DEBUG_ERROR("array subscript out of range");
353 
354  #elif _ITERATOR_DEBUG_LEVEL == 1
356  #endif /* _ITERATOR_DEBUG_LEVEL */
357 
358  return (_Elems[0]);
359  }
_Ty _Elems[1]
Definition: array:424
#define _SCL_SECURE_VALIDATE_RANGE(cond)
Definition: yvals.h:347
#define _DEBUG_ERROR(mesg)
Definition: xutility:32
template<class _Ty >
reverse_iterator array< _Ty, 0 >::rbegin ( )
inline
265  { // return iterator for beginning of reversed mutable sequence
266  return (reverse_iterator(end()));
267  }
iterator end()
Definition: array:254
_STD reverse_iterator< iterator > reverse_iterator
Definition: array:229
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::rbegin ( ) const
inline
270  { // return iterator for beginning of reversed nonmutable sequence
271  return (const_reverse_iterator(end()));
272  }
iterator end()
Definition: array:254
_STD reverse_iterator< const_iterator > const_reverse_iterator
Definition: array:230
template<class _Ty >
reverse_iterator array< _Ty, 0 >::rend ( )
inline
275  { // return iterator for end of reversed mutable sequence
276  return (reverse_iterator(begin()));
277  }
iterator begin()
Definition: array:244
_STD reverse_iterator< iterator > reverse_iterator
Definition: array:229
template<class _Ty >
const_reverse_iterator array< _Ty, 0 >::rend ( ) const
inline
280  { // return iterator for end of reversed nonmutable sequence
281  return (const_reverse_iterator(begin()));
282  }
iterator begin()
Definition: array:244
_STD reverse_iterator< const_iterator > const_reverse_iterator
Definition: array:230
template<class _Ty >
size_type array< _Ty, 0 >::size ( ) const
inline
305  { // return length of sequence
306  return (0);
307  }
template<class _Ty >
void array< _Ty, 0 >::swap ( _Myt )
inline
241  { // swap contents with _Other
242  }

Member Data Documentation

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

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