https://github.com/daggilli/range_adaptors
A small collection of useful C++20/23 range manipulation functor structs
https://github.com/daggilli/range_adaptors
cpp cpp20 cpp23 range-adaptor ranges views
Last synced: about 1 year ago
JSON representation
A small collection of useful C++20/23 range manipulation functor structs
- Host: GitHub
- URL: https://github.com/daggilli/range_adaptors
- Owner: daggilli
- License: bsd-3-clause
- Created: 2025-03-31T21:53:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-31T22:03:31.000Z (about 1 year ago)
- Last Synced: 2025-03-31T23:21:53.714Z (about 1 year ago)
- Topics: cpp, cpp20, cpp23, range-adaptor, ranges, views
- Language: C++
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# range_adaptors
## C++20/23 utilities for manipulating ranges
This is a small collection of functors (callable structs) for manipulating ranges. I wanted an adaptor to drop the last character in a range, so I wrote one. Then I wrote one to drop the last _n_ characters, and so on. Usage is pretty self-explanatory from the test harness in `main.cpp`. The adaptors work on sized and non-sized ranges, although in the latter case they (unavoidably) have linear complexity.