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

constexpr initializer_list () _NOEXCEPT
 
constexpr initializer_list (const _Elem *_First_arg, const _Elem *_Last_arg) _NOEXCEPT
 
constexpr const _Elem * begin () const _NOEXCEPT
 
constexpr const _Elem * end () const _NOEXCEPT
 
constexpr 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>
constexpr initializer_list< _Elem >::initializer_list ( )
inline
29  : _First(0), _Last(0)
30  { // empty list
31  }
const _Elem * _First
Definition: initializer_list:55
const _Elem * _Last
Definition: initializer_list:56
template<class _Elem>
constexpr initializer_list< _Elem >::initializer_list ( const _Elem *  _First_arg,
const _Elem *  _Last_arg 
)
inline
35  : _First(_First_arg), _Last(_Last_arg)
36  { // construct with pointers
37  }
const _Elem * _First
Definition: initializer_list:55
const _Elem * _Last
Definition: initializer_list:56

Member Function Documentation

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

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: