std::initializer_list

From Cppreference

Jump to: navigation, search
template< class T >
class initializer_list;
(C++11 feature)

Contents

[edit] Member types

Member type Definition
value_type T
reference const T&
const_reference const T&
size_type size_t
iterator const T*
const_iterator const T*

[edit] Member functions

(constructor)
constructs the initializer list
(public member function)
Capacity
size
returns the size of the initializer list
(public member function)
Iterators
begin
returns an iterator to the beginning
(public member function)
end
returns an iterator to the end
(public member function)