Skip to content

range-v3 源码级深度剖析

range-v3 是 Eric Niebler 编写的 C++ 范围库,直接催生了 C++20 Ranges 标准。

目录

章节源码路径内容
管道运算符机制__ranges/range_adaptor.hCRTP 基类、__pipeable__compose__bind_back
View 实现filter_view.h, transform_view.h惰性求值、begin 缓存、迭代器适配
Actions 与 Sentinelsactions/, sentinel 概念eager 操作、哨兵迭代器

基于 MIT 许可发布