samedi 1 septembre 2018

Convert a vector of characters to a single string

Please kindly let me know if this question has been answered so I'll delete it.


I have a vector of character that represents a bit-string (or a bloom filter):

std::vector<unsigned char> bit_table_;

Question: How to convert the vector to a single bit-string?

Edit: in general a bloom filter is a bitstring:e.g. 10010101011000. In here it is represented as the above vector. In would like to convert it to a bitstring.

Aucun commentaire:

Enregistrer un commentaire