Open ldionne opened 1 year ago
We could also make it a single pointer and a counter. That would allow us to have a smaller fancy pointer or even bit-pack the count into the lower bits for small N.
For information this will be blocked on https://github.com/llvm/llvm-project/pull/74482.
Just like we do for
std::string_view
andstd::span
. But we can hardcode the size information in the iterator type, leading to 2 pointers instead of needing 3 pointers like__bounded_iter
.