tcbrindle / flux

A C++20 library for sequence-orientated programming
https://tristanbrindle.com/flux/
Boost Software License 1.0
484 stars 29 forks source link

Add const_iterable_sequence concept #154

Closed tcbrindle closed 8 months ago

tcbrindle commented 8 months ago

For a sequence S, const_iterable_sequence<S> means we can use S const as a sequence with the expected semantics.

Specifically, we require that:

We've previously assumed all of these things are true (except possibly the const_element_t requirement), but it's good to have them checked by the compiler where we can.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b54eb3f) 97.99% compared to head (b9fb820) 97.99%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #154 +/- ## ======================================= Coverage 97.99% 97.99% ======================================= Files 66 66 Lines 2392 2392 ======================================= Hits 2344 2344 Misses 48 48 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.