3 * - By John Hodge (thePowersGang)
6 * - C++'s vector (dynamic array) type
8 #ifndef _LIBCXX__INITIALIZER_LIST_
9 #define _LIBCXX__INITIALIZER_LIST_
14 class initializer_list
18 typedef const T& reference;
19 typedef const T& const_reference;
20 typedef size_t size_type;
21 typedef const T* iterator;
22 typedef const T* const_iterator;
24 // ORDER MATTERS : The first item must be a pointer to the array, the second must be the size
28 constexpr initializer_list() noexcept:
33 size_type size() const noexcept
38 const T* begin() const noexcept
42 const T* end() const noexcept
44 return &m_values[m_len];
50 template <class T> const T* begin(const ::std::initializer_list<T>& il) { return il.begin(); }
51 template <class T> const T* end (const ::std::initializer_list<T>& il) { return il.end(); }