We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
range check at at functions should probably be if (idx >= size_) instead of if (idx > size_)
at
if (idx >= size_)
if (idx > size_)
https://github.com/lefticus/tools/blob/332c8f58a8311aa2b7771154b826c3275df83fd0/include/lefticus/tools/simple_stack_vector.hpp#L121C1-L131C4
[[nodiscard]] constexpr value_type &at(const std::size_t idx) { if (idx > size_) { throw std::out_of_range("index past end of stack_vector"); } return data_[idx]; } [[nodiscard]] constexpr const value_type &at(const std::size_t idx) const { if (idx > size_) { throw std::out_of_range("index past end of stack_vector"); } return data_[idx]; }
The text was updated successfully, but these errors were encountered:
Merged, thank you.
Sorry, something went wrong.
No branches or pull requests
range check at
at
functions should probably beif (idx >= size_)
instead ofif (idx > size_)
https://github.com/lefticus/tools/blob/332c8f58a8311aa2b7771154b826c3275df83fd0/include/lefticus/tools/simple_stack_vector.hpp#L121C1-L131C4
The text was updated successfully, but these errors were encountered: