std::ranges::chunk_view<V>::outer-iterator::operator*

從 cppreference.com
 
 
範圍庫
範圍適配器
 
std::ranges::chunk_view
成員函數
用於 input_range 的類
推導指引
outer-iterator
chunk_view::outer-iterator::operator*
outer-iterator::value_type
inner-iterator
 
constexpr value_type operator*() const;
(C++23 起)

返回 chunk_view 中的當前區塊。

parent_ 為底層指針,並令 value_type 是作為迭代器的值類型的嵌套類。

等價於:return value_type(*parent_);

調用此運算符之前,表達式 *this == std::default_sentinel 必須為 false

[編輯] 參數

(無)

[編輯] 返回值

當前元素(一個區塊)。

[編輯] 示例