Files
cppdraft_translate/cppdraft/span/deduct.md
2025-10-25 03:02:53 +03:00

37 lines
1.3 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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)