diff options
Diffstat (limited to 'chilbert/Hilbert.ipp')
-rw-r--r-- | chilbert/Hilbert.ipp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chilbert/Hilbert.ipp b/chilbert/Hilbert.ipp index 0b02fba..571166d 100644 --- a/chilbert/Hilbert.ipp +++ b/chilbert/Hilbert.ipp @@ -19,6 +19,7 @@ #ifndef CHILBERT_ALGORITHM_HPP #define CHILBERT_ALGORITHM_HPP +#include "chilbert/BoundedBitVec.hpp" #include "chilbert/DynamicBitVec.hpp" #include "chilbert/GrayCodeRank.hpp" #include "chilbert/Hilbert.hpp" @@ -63,6 +64,13 @@ num_bits(const StaticBitVec<N>&, void* = nullptr) return N; } +template <size_t MaxN> +size_t +num_bits(const BoundedBitVec<MaxN>& vec, void* = nullptr) +{ + return vec.size(); +} + /** Copy a range of bits from one field to the start of another. * * @param h Source bit field |