“cpp/ranges/chunk view/outer iterator/operator cmp”的版本间的差异
来自cppreference.com
< cpp | ranges | chunk view | outer iterator
小 |
小 |
||
第1行: | 第1行: | ||
− | {{title|1=operator=={{ | + | {{title|1=operator=={{|(ranges::chunk_view::''outer-iterator'')}}}} |
{{cpp/ranges/chunk_view/navbar}} | {{cpp/ranges/chunk_view/navbar}} | ||
第15行: | 第15行: | ||
}} | }} | ||
− | {{cpp/hidden friend|std::ranges::chunk_view::''outer-iterator''|plural=no}} | + | {{cpp/hidden friend|std::ranges::chunk_view::''outer-iterator''|plural=no}} |
{{cpp/note synthesized eq}} | {{cpp/note synthesized eq}} |
2024年6月20日 (四) 22:37的最后版本
friend constexpr bool operator==( const /*outer-iterator*/& x, std::default_sentinel_t ); |
(C++23 起) | |
令 parent_
为指向外围 chunk_view
的底层指针。等价于:
return *x.parent_->current_ == ranges::end(x.parent_->base_) and x.parent_->remainder_ != 0;
此函数对常规的无限定或有限定查找不可见,而只能在 std::ranges::chunk_view::outer-iterator
为实参的关联类时由实参依赖查找找到。
!=
运算符从 operator==
运算符合成。
[编辑] 参数
x | - | 迭代器 |
[编辑] 返回值
比较的结果。