initializer_list

标准库标头<初始化器[医]列表>

此标头是效用图书馆。

std::initializer_list(C++11)(class template)

功能

std::begin(std::initializer_list) (C++11)specializes std::begin (function template)
std::end(std::initializer_list) (C++11)specializes std::end (function template)

简介

二次

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; }

二次

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cpPreference.com/w/cpp/头/初始化器[医]列单