Mark Bitmask::oompress const.

GitOrigin-RevId: 9dc12cb8b24afe5613e0dbdfca48da30da4c59b5
This commit is contained in:
levlam 2019-08-23 19:25:07 +03:00
parent 3e15c89f88
commit ba5ae7229a
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ Bitmask::Bitmask(Ones, int64 count) : data_(narrow_cast<size_t>((count + 7) / 8)
}
}
Bitmask Bitmask::compress(int k) {
Bitmask Bitmask::compress(int k) const {
Bitmask res;
for (int64 i = 0; i * k < size(); i++) {
bool f = true;

View File

@ -30,7 +30,7 @@ class Bitmask {
void set(int64 offset_part);
int64 size() const;
Bitmask compress(int k);
Bitmask compress(int k) const;
private:
std::string data_;