forked from simongog/sdsl-lite
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpl-05.cpp
More file actions
Latest commit
17 lines (15 loc) · 405 Bytes
/
Copy pathexpl-05.cpp
File metadata and controls
17 lines (15 loc) · 405 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<iostream>
#include<sdsl/bit_vectors.hpp>
usingnamespacestd;
usingnamespacesdsl;
intmain()
{
bit_vector b = bit_vector(80*(1<<20), 0);
for (size_t i=0; i < b.size(); i+=100)
b[i] = 1;
cout << size_in_mega_bytes(b) << endl;
rrr_vector<63> rrrb(b);
cout << size_in_mega_bytes(rrrb) << endl;
sd_vector<> sdb(b);
cout << size_in_mega_bytes(sdb) << endl;
}