This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

36
cppdraft/span/deduct.md Normal file
View File

@@ -0,0 +1,36 @@
[span.deduct]
# 23 Containers library [[containers]](./#containers)
## 23.7 Views [[views]](views#span.deduct)
### 23.7.2 Contiguous access [[views.contiguous]](views.contiguous#span.deduct)
#### 23.7.2.2 Class template span [[views.span]](views.span#span.deduct)
#### 23.7.2.2.3 Deduction guides [span.deduct]
[🔗](#lib:span,deduction_guide)
`template<class It, class EndOrSize>
span(It, EndOrSize) -> span<remove_reference_t<iter_reference_t<It>>,
[maybe-static-ext](span.syn#concept:maybe-static-ext "23.7.2.1Header <span> synopsis[span.syn]")<EndOrSize>>;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L20615)
*Constraints*: It satisfies [contiguous_iterator](iterator.concept.contiguous#concept:contiguous_iterator "24.3.4.14Concept contiguous_­iterator[iterator.concept.contiguous]")[.](#1.sentence-1)
[🔗](#lib:span,deduction_guide_)
`template<class R>
span(R&&) -> span<remove_reference_t<ranges::range_reference_t<R>>>;
`
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/containers.tex#L20627)
*Constraints*: R satisfies ranges::[contiguous_range](range.refinements#concept:contiguous_range "25.4.6Other range refinements[range.refinements]")[.](#2.sentence-1)