[support.initlist.range]
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@104975 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/initializer_list b/include/initializer_list
index 266c0f5..671aa27 100644
--- a/include/initializer_list
+++ b/include/initializer_list
@@ -36,6 +36,9 @@
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
*/
@@ -75,6 +78,22 @@
_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
#endif // _LIBCPP_INITIALIZER_LIST