Init
This commit is contained in:
50
cppdraft/support/initlist/access.md
Normal file
50
cppdraft/support/initlist/access.md
Normal file
@@ -0,0 +1,50 @@
|
||||
[support.initlist.access]
|
||||
|
||||
# 17 Language support library [[support]](./#support)
|
||||
|
||||
## 17.11 Initializer lists [[support.initlist]](support.initlist#access)
|
||||
|
||||
### 17.11.4 Initializer list access [support.initlist.access]
|
||||
|
||||
[ð](#lib:begin,initializer_list)
|
||||
|
||||
`constexpr const E* begin() const noexcept;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4722)
|
||||
|
||||
*Returns*: A pointer to the beginning of the array[.](#1.sentence-1)
|
||||
|
||||
If size() == 0 the
|
||||
values of begin() and end() are unspecified but they shall be
|
||||
identical[.](#1.sentence-2)
|
||||
|
||||
[ð](#lib:end,initializer_list)
|
||||
|
||||
`constexpr const E* end() const noexcept;
|
||||
`
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4735)
|
||||
|
||||
*Returns*: begin() + size()[.](#2.sentence-1)
|
||||
|
||||
[ð](#lib:size,initializer_list)
|
||||
|
||||
`constexpr size_t size() const noexcept;
|
||||
`
|
||||
|
||||
[3](#3)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4746)
|
||||
|
||||
*Returns*: The number of elements in the array[.](#3.sentence-1)
|
||||
|
||||
[4](#4)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4750)
|
||||
|
||||
*Complexity*: Constant time[.](#4.sentence-1)
|
||||
Reference in New Issue
Block a user