diff options
Diffstat (limited to 'include/chilbert/StaticBitVec.hpp')
-rw-r--r-- | include/chilbert/StaticBitVec.hpp | 35 |
1 files changed, 7 insertions, 28 deletions
diff --git a/include/chilbert/StaticBitVec.hpp b/include/chilbert/StaticBitVec.hpp index acfe8a1..3039cff 100644 --- a/include/chilbert/StaticBitVec.hpp +++ b/include/chilbert/StaticBitVec.hpp @@ -57,40 +57,19 @@ public: /// Return a reference to the `index`th rack #ifndef NDEBUG - const auto& rack(const size_t index) const - { - return m_racks.at(index); - } - auto& rack(const size_t index) - { - return m_racks.at(index); - } + const auto& rack(const size_t index) const { return m_racks.at(index); } + auto& rack(const size_t index) { return m_racks.at(index); } #else - const auto& rack(const size_t index) const - { - return m_racks[index]; - } - auto& rack(const size_t index) - { - return m_racks[index]; - } + const auto& rack(const size_t index) const { return m_racks[index]; } + auto& rack(const size_t index) { return m_racks[index]; } #endif /// Return a raw pointer to the racks - Rack* data() - { - return m_racks.data(); - } - const Rack* data() const - { - return m_racks.data(); - } + Rack* data() { return m_racks.data(); } + const Rack* data() const { return m_racks.data(); } /// Return the total size of all racks in bytes - static constexpr size_t data_size() - { - return num_racks() * sizeof(Rack); - } + static constexpr size_t data_size() { return num_racks() * sizeof(Rack); } /// Return the number of racks static constexpr size_t num_racks() |