|
@@ -36,6 +36,9 @@ public:
|
|
const E* end() const;
|
|
const E* end() const;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+template<class E> const E* begin(initializer_list<E> il);
|
|
|
|
+template<class E> const E* end(initializer_list<E> il);
|
|
|
|
+
|
|
} // std
|
|
} // std
|
|
|
|
|
|
*/
|
|
*/
|
|
@@ -75,6 +78,22 @@ public:
|
|
_LIBCPP_ALWAYS_INLINE const _E* end() const {return __begin_ + __size_;}
|
|
_LIBCPP_ALWAYS_INLINE const _E* end() const {return __begin_ + __size_;}
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+template<class _E>
|
|
|
|
+inline _LIBCPP_INLINE_VISIBILITY
|
|
|
|
+const _E*
|
|
|
|
+begin(initializer_list<_E> __il)
|
|
|
|
+{
|
|
|
|
+ return __il.begin();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+template<class _E>
|
|
|
|
+inline _LIBCPP_INLINE_VISIBILITY
|
|
|
|
+const _E*
|
|
|
|
+end(initializer_list<_E> __il)
|
|
|
|
+{
|
|
|
|
+ return __il.end();
|
|
|
|
+}
|
|
|
|
+
|
|
} // std
|
|
} // std
|
|
|
|
|
|
#endif // _LIBCPP_INITIALIZER_LIST
|
|
#endif // _LIBCPP_INITIALIZER_LIST
|