Standard library header <initializer_list> (C++11)
From cppreference.com
This header is part of the language support library.
Classes | |
(C++11) |
references a temporary array created in list-initialization (class template) |
Synopsis
// 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 const E* data() const noexcept;
constexpr size_t size() const noexcept;
constexpr bool empty() const noexcept;
constexpr const E* begin() const noexcept;
constexpr const E* end() const noexcept;
};
}