小编Ast*_*nax的帖子

在std :: bitset中迭代真位的有效方法?

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

c++ iteration algorithm bitset data-structures

20
推荐指数
2
解决办法
8698
查看次数

标签 统计

algorithm ×1

bitset ×1

c++ ×1

data-structures ×1

iteration ×1