File: expl-01.cpp

package info (click to toggle)
seqan3 3.0.2%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,052 kB
  • sloc: cpp: 144,641; makefile: 1,288; ansic: 294; sh: 228; xml: 217; javascript: 50; python: 27; php: 25
file content (14 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <sdsl/vectors.hpp>

using namespace std;
using namespace sdsl;

int main()
{
    int_vector<> v = {3,2,1,0,2,1,3,4,1,1,1,3,2,3};
    v[1] = 0;
    util::bit_compress(v);
    cout << v << endl;
    cout << size_in_bytes(v) << endl;
}