cppreference.com
Search
Log in / create account
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::initializer_list::
initializer_list
From cppreference.com
<
cpp
|
utility
|
initializer list
C++
Language
Concepts
Utilities library
Strings library
Containers library
Algorithms library
Iterators library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Utilities library
Type support
(basic types, RTTI, type traits)
Dynamic memory management
Error handling
Program utilities
Variadic functions
Date and time
Function objects
initializer_list
(C++11)
bitset
hash
(C++11)
Relational operators
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
Pairs and tuples
pair
tuple
(C++11)
piecewise_construct_t
(C++11)
piecewise_construct
(C++11)
Swap, forward and move
swap
forward
(C++11)
move
(C++11)
move_if_noexcept
(C++11)
declval
(C++11)
std::initializer_list
Member functions
initializer_list::initializer_list
Capacity
initializer_list::size
Iterators
initializer_list::begin
initializer_list::end
Non-member functions
std::begin
std::end
initializer_list
(
)
;
(since C++11)
Constructs an empty initializer list.
[
edit
]
Parameters
(none)
[
edit
]
Exceptions
noexcept
specification:
noexcept
(since C++11)
[
edit
]
Complexity
Constant