From Jason Turner

[initializer_list.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmplqui08md/{from.md → to.md} +0 -39
tmp/tmplqui08md/{from.md → to.md} RENAMED
@@ -1,39 +0,0 @@
1
- ### Header `<initializer_list>` synopsis <a id="initializer_list.syn">[[initializer_list.syn]]</a>
2
-
3
- ``` cpp
4
- namespace std {
5
- template<class E> class initializer_list {
6
- public:
7
- using value_type = E;
8
- using reference = const E&;
9
- using const_reference = const E&;
10
- using size_type = size_t;
11
-
12
- using iterator = const E*;
13
- using const_iterator = const E*;
14
-
15
- constexpr initializer_list() noexcept;
16
-
17
- constexpr size_t size() const noexcept; // number of elements
18
- constexpr const E* begin() const noexcept; // first element
19
- constexpr const E* end() const noexcept; // one past the last element
20
- };
21
-
22
- // [support.initlist.range], initializer list range access
23
- template<class E> constexpr const E* begin(initializer_list<E> il) noexcept;
24
- template<class E> constexpr const E* end(initializer_list<E> il) noexcept;
25
- }
26
- ```
27
-
28
- An object of type `initializer_list<E>` provides access to an array of
29
- objects of type `const E`.
30
-
31
- [*Note 1*: A pair of pointers or a pointer plus a length would be
32
- obvious representations for `initializer_list`. `initializer_list` is
33
- used to implement initializer lists as specified in  [[dcl.init.list]].
34
- Copying an initializer list does not copy the underlying
35
- elements. — *end note*]
36
-
37
- If an explicit specialization or partial specialization of
38
- `initializer_list` is declared, the program is ill-formed.
39
-