// -*- C++ -*- //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef _LIBCPP_INITIALIZER_LIST #define _LIBCPP_INITIALIZER_LIST /* initializer_list synopsis namespace std { template<class E> class initializer_list { public: typedef E value_type; typedef const E& reference; typedef const E& const_reference; typedef size_t size_type; typedef const E* iterator; typedef const E* const_iterator; initializer_list() noexcept; // constexpr in C++14 size_t size() const noexcept; // constexpr in C++14 const E* begin() const noexcept; // constexpr in C++14 const E* end() const noexcept; // constexpr in C++14 }; template<class E> const E* begin(initializer_list<E> il) noexcept; // constexpr in C++14 template<class E> const E* end(initializer_list<E> il) noexcept; // constexpr in C++14 } // std */ #include <__config> #include <cstddef> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) # pragma GCC system_header #endif namespace std // purposefully not versioned { #ifndef _LIBCPP_CXX03_LANG template <class _Ep> class _LIBCPP_TEMPLATE_VIS initializer_list { … }; template <class _Ep> inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const _Ep* begin(initializer_list<_Ep> __il) _NOEXCEPT { … } template <class _Ep> inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX14 const _Ep* end(initializer_list<_Ep> __il) _NOEXCEPT { … } #endif // !defined(_LIBCPP_CXX03_LANG) } // namespace std #endif // _LIBCPP_INITIALIZER_LIST