有没有一种方法可以迭代(可能是巨大的)设置为true的位数std::bitset是线性的?我想防止必须检查bitset中的每个位置.迭代应该连续返回设置为true的每个位的索引.
std::bitset
c++ iteration algorithm bitset data-structures
algorithm ×1
bitset ×1
c++ ×1
data-structures ×1
iteration ×1