File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1414
1515/* * Class that mimics std::deque<bool>, but with std::vector<bool>'s bit packing.
1616 *
17- * BlobSize selects the (minimum) number of bits that are allocated at once.
17+ * BITS_PER_WORD selects the (minimum) number of bits that are allocated at once.
1818 * Larger values reduce the asymptotic memory usage overhead, at the cost of
1919 * needing larger up-front allocations. The default is 4096 bytes.
2020 */
21- template <int BlobSize = 4096 * 8 >
21+ template <int BITS_PER_WORD = 4096 * 8 >
2222class bitdeque
2323{
2424 // Internal definitions
25- using word_type = std::bitset<BlobSize >;
25+ using word_type = std::bitset<BITS_PER_WORD >;
2626 using deque_type = std::deque<word_type>;
27- static_assert (BlobSize > 0 );
28- static constexpr int BITS_PER_WORD = BlobSize;
27+ static_assert (BITS_PER_WORD > 0 );
2928
3029 // Forward and friend declarations of iterator types.
3130 template <bool Const> class Iterator ;
You can’t perform that action at this time.
0 commit comments