標準ライブラリヘッダー <initializer_list> (C++11)
From cppreference.com
このヘッダーは言語サポートライブラリの一部です。
クラス | |
| (C++11) |
リスト初期化で作成された一時配列を参照する (クラステンプレート) |
関数 | |
| std::begin をオーバーロードする (function template) | |
| std::end を特殊化する (function template) | |
[編集] 概要
// all freestanding namespace std { template<class E> class initializer_list { public: using value_type = E; using reference = const E&; using const_reference = const E&; using size_type = size_t; using iterator = const E*; using const_iterator = const E*; constexpr initializer_list() noexcept; constexpr size_t size() const noexcept; // number of elements constexpr const E* begin() const noexcept; // first element constexpr const E* end() const noexcept; // one past the last element }; // initializer list range access template<class E> constexpr const E* begin(initializer_list<E> il) noexcept; template<class E> constexpr const E* end(initializer_list<E> il) noexcept; }