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 14
14
15
15
/* * Class that mimics std::deque<bool>, but with std::vector<bool>'s bit packing.
16
16
*
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.
18
18
* Larger values reduce the asymptotic memory usage overhead, at the cost of
19
19
* needing larger up-front allocations. The default is 4096 bytes.
20
20
*/
21
- template <int BlobSize = 4096 * 8 >
21
+ template <int BITS_PER_WORD = 4096 * 8 >
22
22
class bitdeque
23
23
{
24
24
// Internal definitions
25
- using word_type = std::bitset<BlobSize >;
25
+ using word_type = std::bitset<BITS_PER_WORD >;
26
26
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 );
29
28
30
29
// Forward and friend declarations of iterator types.
31
30
template <bool Const> class Iterator ;
You can’t perform that action at this time.
0 commit comments