45 a_to.resize(a_from.size());
46 for (
size_t i = 0; i < a_from.size(); ++i)
48 a_to[i] = a_from[i] != 0;
59 a_to.reserve(a_from.size());
60 for (
size_t i = 0; i < a_from.size(); ++i)
62 a_to.push_back(a_from[i]);
void VecBooleanToDynBitset(const std::vector< unsigned char > &a_from, DynBitset &a_to)
Convert from a VecBoolean to a DynBitset.
void DynBitsetToVecBoolean(const DynBitset &a_from, std::vector< unsigned char > &a_to)
Convert from a DynBitset to a VecBoolean.
Macros etc that make boost more convenient to use.
boost::dynamic_bitset< size_t > DynBitset
vector of flags