48 virtual ~
Rank() =
default;
55 virtual uint64_t rank(std::size_t pos) = 0;
63 uint64_t
rank(std::size_t from, std::size_t to) {
return rank(to) -
rank(from); }
70 virtual uint64_t
rankZero(std::size_t pos) {
return pos - rank(pos); }
81 virtual std::size_t size()
const = 0;