名稱空間
變體
操作

std::ranges::stride_view 的推導指引

來自 cppreference.com
< cpp‎ | ranges‎ | stride view
 
 
範圍庫 (Ranges library)
範圍介面卡 (Range adaptors)
 
 
定義於標頭檔案 <ranges>
template< class R >
stride_view( R&&, ranges::range_difference_t<R> ) -> stride_view<views::all_t<R>>;
(C++23 起)

std::ranges::stride_view 提供了推導指引,以允許從 range (範圍)和元素數量進行推導。

[編輯] 示例