Standard library header <initializer_list> (C++11)
From cppreference.net
C++
Standard library headers
이 헤더는 언어 지원 라이브러리의 일부입니다.
클래스 |
|
|
(C++11)
|
목록 초기화
과정에서 생성된 임시 배열을 참조합니다
(클래스 템플릿) |
함수 |
|
|
std::begin
의 오버로드
(함수 템플릿) |
|
|
(C++11)
|
std::end
의 특수화
(함수 템플릿) |
시놉시스
// 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; // 요소의 개수 constexpr const E* begin() const noexcept; // 첫 번째 요소 constexpr const E* end() const noexcept; // 마지막 요소의 다음 위치 }; // 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; }