saxbophone / arby

Arbitrary precision arithmetic in C++, even at compile-time
https://saxbophone.com/arby/
Mozilla Public License 2.0
8 stars 1 forks source link

Nat.digits() should return a read-only span of digits #122

Open saxbophone opened 2 years ago

saxbophone commented 2 years ago

This can't be done until _digits is stored in a contiguous container, as std::span can only view over contiguous ranges. This is blocked on https://github.com/saxbophone/codlili/issues/1, (implement "Sharray") as that type will provide compile-time contiguous storage, with fast insertion and deletion at both ends.