update assert
This commit is contained in:
parent
61a05620d0
commit
5e198e9983
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ class [[nodiscard]] cstring {
|
|||
|
||||
[[nodiscard]] constexpr const_reverse_iterator crend() const noexcept { return rend(); }
|
||||
|
||||
[[nodiscard]] constexpr const_reference operator[](std::size_t i) const noexcept { return assert(i < N), chars_[i]; }
|
||||
[[nodiscard]] constexpr const_reference operator[](std::size_t i) const noexcept { return assert(i < size()), chars_[i]; }
|
||||
|
||||
[[nodiscard]] constexpr const_reference at(std::size_t i) const { return assert(i < N), chars_.at(i); }
|
||||
[[nodiscard]] constexpr const_reference at(std::size_t i) const { return assert(i < size()), chars_.at(i); }
|
||||
|
||||
[[nodiscard]] constexpr const_reference front() const noexcept { return chars_[0]; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue