- C++17 STL Cookbook
- Jacek Galowicz
- 66字
- 2025-04-04 19:00:07
Iterators
We cover the following recipes in this chapter:
- Building your own iterable range
- Making your own iterators compatible with STL iterator categories
- Using iterator wrappers to fill generic data structures
- Implementing algorithms in terms of iterators
- Iterating the other way around using reverse iterator adapters
- Terminating iterations over ranges with iterator sentinels
- Automatically checking iterator code with checked iterators
- Building your own zip iterator adapter