Spec-Zone.ru › C++

deduction guides for std::extents

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.

The deduced type is equivalent to

std::dextents<std::size_t, sizeof...(Integrals)>

(until C++26)

std::extents<std::size_t, maybe-static-ext <Integrals>...>

(since C++26)

This overload participates in overload resolution only if (std::is_convertible_v<Integrals, std::size_t> && ...) is true.

Example

See also

(constructor)
constructs an extents
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/container/mdspan/extents/deduction_guides

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API