名稱空間
變體
操作

std::extents 的推導指南

來自 cppreference.com
< cpp‎ | 容器‎ | mdspan‎ | extents
 
 
 
 
 
定義於標頭檔案 <mdspan>
template< class... Integrals >
explicit extents( Integrals... ) -> /* 見下文 */;
(C++23 起)

std::extents 提供了推導指南,以允許從整型實參進行推導。

推匯出的型別等價於

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

(直到 C++26)

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

(C++26 起)

此過載僅在 (std::is_convertible_v<Integrals, std::size_t> && ...)true 時參與過載決議。

[編輯] 示例

[編輯] 參閱

構造一個 extents
(public 成員函式) [編輯]