diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2010-05-28 17:53:59 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2010-05-28 17:53:59 +0000 |
| commit | 9d4a2861bbb7f1d09392e8e7d450c97bd7ea3374 (patch) | |
| tree | aa70901f180f9b582e7818b9fd26fd639572b7ab /libcxx/include/initializer_list | |
| parent | 0b20fdaff0c719fba1ae48156c4042446092cffa (diff) | |
| download | bcm5719-llvm-9d4a2861bbb7f1d09392e8e7d450c97bd7ea3374.tar.gz bcm5719-llvm-9d4a2861bbb7f1d09392e8e7d450c97bd7ea3374.zip | |
[support.initlist.range]
llvm-svn: 104975
Diffstat (limited to 'libcxx/include/initializer_list')
| -rw-r--r-- | libcxx/include/initializer_list | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libcxx/include/initializer_list b/libcxx/include/initializer_list index 266c0f559c4..671aa271085 100644 --- a/libcxx/include/initializer_list +++ b/libcxx/include/initializer_list @@ -36,6 +36,9 @@ public: 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 @@ public: _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 |

