An open API service indexing awesome lists of open source software.

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

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.