cppitertools icon indicating copy to clipboard operation
cppitertools copied to clipboard

Implementation of python itertools and builtin iteration functions for C++17

Results 20 cppitertools issues
Sort by recently updated
recently updated
newest added

Give a range object `r` - `r.start()`, `r.stop()`, and `r.stop()` constexpr member functions to match the `.start`, `.stop`, and `.step` properties. - `r.size()` and `r.length()` to match `len(r)` - `r[index]`

enhancement

Hi I'm getting another strange behaviour: ``` vector v{true, true, false, false,false, true, true}; for (auto &&x: iter::groupby(v,[](auto b){return b;})) { cout

bug

I am interested in using this library to iterate over all "n multichoose k" possibilities for a multiset, but I am representing each set as a simple vector of counts,...

question

DO NOT SUBMIT. This is how far I got. Feel free to use any or all of this.

Can you please add the list of compatible compilers? VS 2013 does not support noexcept while VS 2015 finds "unknown size" errors everywhere. ``` Severity Code Description Project File Line...

- update examples/zip_longest_examples.cpp to use structured bindings - update README example to use structured bindings

enhancement

Hi, first thanks a lot for this amazing library. I'm trying to integrate this library as a dependency of my CMake project, but I can't get it to work the...

C++ iterators basically model pointers. Hence a const pointer can still be dereferenced to a mutable object (`T * const` *not* `const T*`). This is not true for many iterators...

Currently a lot iterators have only non-const `operator*` or `operator->` (for example in [groupby](https://github.com/ryanhaining/cppitertools/blob/add5acc932dea2c78acd80747bab71ec0b5bce27/groupby.hpp#L254)). This is not correct according to the legacy and C++20 iterator concepts: - [*LegacyInputIterator*](https://en.cppreference.com/w/cpp/named_req/InputIterator) states that...

Currently we can't use unique_everseen for proto-buffs, or any element that doesn't have std::hash. Would make sense to make functions for which its relevant to be templated by equality and...

enhancement