Skip to content

Commit 59a6df6

Browse files
committed
util: add BitSet
This adds a bitset module that implements a BitSet<N> class, a variant of std::bitset with a few additional features that cannot be implemented in a wrapper without performance loss (specifically, finding first and last bit set, or iterating over all set bits).
1 parent cad1272 commit 59a6df6

File tree

3 files changed

+529
-0
lines changed

3 files changed

+529
-0
lines changed

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ BITCOIN_CORE_H = \
292292
util/batchpriority.h \
293293
util/bip32.h \
294294
util/bitdeque.h \
295+
util/bitset.h \
295296
util/bytevectorhash.h \
296297
util/chaintype.h \
297298
util/check.h \

0 commit comments

Comments
 (0)