30 #ifndef _INITIALIZER_LIST
31 #define _INITIALIZER_LIST
33 #pragma GCC system_header
35 #ifdef __GXX_EXPERIMENTAL_CXX0X__
37 #pragma GCC visibility push(default)
48 typedef _E value_type;
49 typedef const _E& reference;
50 typedef const _E& const_reference;
51 typedef size_t size_type;
52 typedef const _E* iterator;
53 typedef const _E* const_iterator;
61 : _M_array(__a), _M_len(__l) { }
64 constexpr initializer_list() : _M_array(0), _M_len(0) { }
68 size() {
return _M_len; }
71 constexpr const_iterator
72 begin() {
return _M_array; }
75 constexpr const_iterator
76 end() {
return begin() + size(); }
87 {
return __ils.begin(); }
97 {
return __ils.end(); }
100 #pragma GCC visibility pop
102 #endif // _INITIALIZER_LIST
constexpr const _Tp * begin(initializer_list< _Tp > __ils)
Return an iterator pointing to the first element of the initilizer_list.
constexpr const _Tp * end(initializer_list< _Tp > __ils)
Return an iterator pointing to one past the last element of the initilizer_list.