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)
|
||||
18
cppdraft/support/initlist/cons.md
Normal file
18
cppdraft/support/initlist/cons.md
Normal file
@@ -0,0 +1,18 @@
|
||||
[support.initlist.cons]
|
||||
|
||||
# 17 Language support library [[support]](./#support)
|
||||
|
||||
## 17.11 Initializer lists [[support.initlist]](support.initlist#cons)
|
||||
|
||||
### 17.11.3 Initializer list constructors [support.initlist.cons]
|
||||
|
||||
[ð](#lib:initializer_list,constructor)
|
||||
|
||||
`constexpr initializer_list() noexcept;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4709)
|
||||
|
||||
*Postconditions*: size() == 0[.](#1.sentence-1)
|
||||
16
cppdraft/support/initlist/general.md
Normal file
16
cppdraft/support/initlist/general.md
Normal file
@@ -0,0 +1,16 @@
|
||||
[support.initlist.general]
|
||||
|
||||
# 17 Language support library [[support]](./#support)
|
||||
|
||||
## 17.11 Initializer lists [[support.initlist]](support.initlist#general)
|
||||
|
||||
### 17.11.1 General [support.initlist.general]
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4649)
|
||||
|
||||
The header <initializer_list> defines a class template and several
|
||||
support functions related to list-initialization (see [[dcl.init.list]](dcl.init.list "9.5.5 List-initialization"))[.](#1.sentence-1)
|
||||
|
||||
All functions specified in [[support.initlist]](support.initlist "17.11 Initializer lists") are signal-safe ([[support.signal]](support.signal "17.14.5 Signal handlers"))[.](#1.sentence-2)
|
||||
29
cppdraft/support/initlist/range.md
Normal file
29
cppdraft/support/initlist/range.md
Normal file
@@ -0,0 +1,29 @@
|
||||
[support.initlist.range]
|
||||
|
||||
# 17 Language support library [[support]](./#support)
|
||||
|
||||
## 17.11 Initializer lists [[support.initlist]](support.initlist#range)
|
||||
|
||||
### 17.11.5 Initializer list range access [support.initlist.range]
|
||||
|
||||
[ð](#lib:begin(initializer_list%3cE%3e))
|
||||
|
||||
`template<class E> constexpr const E* begin(initializer_list<E> il) noexcept;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4763)
|
||||
|
||||
*Returns*: il.begin()[.](#1.sentence-1)
|
||||
|
||||
[ð](#lib:end(initializer_list%3cE%3e))
|
||||
|
||||
`template<class E> constexpr const E* end(initializer_list<E> il) noexcept;
|
||||
`
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4774)
|
||||
|
||||
*Returns*: il.end()[.](#2.sentence-1)
|
||||
Reference in New Issue
Block a user