std::extents
的推導指南
來自 cppreference.com
定義於標頭檔案 <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, |
(C++26 起) |
此過載僅在 (std::is_convertible_v<Integrals, std::size_t> && ...) 為 true 時參與過載決議。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
構造一個 extents (public 成員函式) |