STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
initializer_list< _Elem > Class Template Reference

Public Types

typedef _Elem value_type
 
typedef const _Elem & reference
 
typedef const _Elem & const_reference
 
typedef size_t size_type
 
typedef const _Elem * iterator
 
typedef const _Elem * const_iterator
 

Public Member Functions

 initializer_list () _NOEXCEPT
 
 initializer_list (const _Elem *_First_arg, const _Elem *_Last_arg) _NOEXCEPT
 
const _Elem * begin () const _NOEXCEPT
 
const _Elem * end () const _NOEXCEPT
 
size_t size () const _NOEXCEPT
 

Private Attributes

const _Elem * _First
 
const _Elem * _Last
 

Member Typedef Documentation

template<class _Elem>
typedef const _Elem* initializer_list< _Elem >::const_iterator
template<class _Elem>
typedef const _Elem& initializer_list< _Elem >::const_reference
template<class _Elem>
typedef const _Elem* initializer_list< _Elem >::iterator
template<class _Elem>
typedef const _Elem& initializer_list< _Elem >::reference
template<class _Elem>
typedef size_t initializer_list< _Elem >::size_type
template<class _Elem>
typedef _Elem initializer_list< _Elem >::value_type

Constructor & Destructor Documentation

template<class _Elem>
initializer_list< _Elem >::initializer_list ( )
inline
28  : _First(0), _Last(0)
29  { // empty list
30  }
const _Elem * _First
Definition: initializer_list:54
const _Elem * _Last
Definition: initializer_list:55
template<class _Elem>
initializer_list< _Elem >::initializer_list ( const _Elem *  _First_arg,
const _Elem *  _Last_arg 
)
inline
34  : _First(_First_arg), _Last(_Last_arg)
35  { // construct with pointers
36  }
const _Elem * _First
Definition: initializer_list:54
const _Elem * _Last
Definition: initializer_list:55

Member Function Documentation

template<class _Elem>
const _Elem* initializer_list< _Elem >::begin ( ) const
inline
39  { // get beginning of list
40  return (_First);
41  }
const _Elem * _First
Definition: initializer_list:54
template<class _Elem>
const _Elem* initializer_list< _Elem >::end ( ) const
inline
44  { // get end of list
45  return (_Last);
46  }
const _Elem * _Last
Definition: initializer_list:55
template<class _Elem>
size_t initializer_list< _Elem >::size ( ) const
inline
49  { // get length of list
50  return ((size_t)(_Last - _First));
51  }
const _Elem * _First
Definition: initializer_list:54
const _Elem * _Last
Definition: initializer_list:55

Member Data Documentation

template<class _Elem>
const _Elem* initializer_list< _Elem >::_First
private
template<class _Elem>
const _Elem* initializer_list< _Elem >::_Last
private

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