deduction guides for std::extents
From cppreference.com
C++
Containers library
(C++17) | ||||
| Sequence | ||||
(C++11) | ||||
(C++26) | ||||
(C++26) | ||||
(C++11) | ||||
| Associative | ||||
| Unordered associative | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
(C++11) | ||||
| Adaptors | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Views | ||||
(C++20) | ||||
(C++23) | ||||
| Tables | ||||
| Iterator invalidation | ||||
| Member function table | ||||
| Non-member function table |
std::mdspan
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::extents
| Member functions | ||||
| Observers | ||||
| Helpers | ||||
| Non-member functions | ||||
| Deduction guides |
| Defined in header <mdspan>
|
||
| template< class... Integrals > explicit extents( Integrals... ) -> /* see below */; |
(since C++23) | |
A deduction guide is provided for std::extents to allow deduction from integral arguments.
|
std::dextents<std::size_t, sizeof...(Integrals)> |
(until C++26) |
|
std::extents<std::size_t, |
(since C++26) |
This overload participates in overload resolution only if (std::is_convertible_v<Integrals, std::size_t> && ...) is true.
[edit] Example
| This section is incomplete Reason: no example |
[edit] See also
constructs an extents (public member function) [edit] |