Skip to content

daggilli/range_adaptors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

To build:
mkdir build
./CMAKE
./BUILD

and, optionally:
./INSTALL

The rangeadaptor.hpp header will be installed in the default location, probably usr/local/include.

About

A small collection of useful C++20/23 range manipulation functor structs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published