Skip to content
New issue

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

Use begin and end for span instead of cbegin and cend #472

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/include/gnuradio-4.0/CircularBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,9 @@ class CircularBuffer {
[[nodiscard]] constexpr std::size_t size() const noexcept { return _parent->_internalSpan.size(); };
[[nodiscard]] constexpr std::size_t size_bytes() const noexcept { return size() * sizeof(T); };
[[nodiscard]] constexpr bool empty() const noexcept { return _parent->_internalSpan.empty(); }
[[nodiscard]] constexpr iterator cbegin() const noexcept { return _parent->_internalSpan.cbegin(); }
[[nodiscard]] constexpr iterator cbegin() const noexcept { return _parent->_internalSpan.begin(); }
[[nodiscard]] constexpr iterator begin() const noexcept { return _parent->_internalSpan.begin(); }
[[nodiscard]] constexpr iterator cend() const noexcept { return _parent->_internalSpan.cend(); }
[[nodiscard]] constexpr iterator cend() const noexcept { return _parent->_internalSpan.end(); }
[[nodiscard]] constexpr iterator end() const noexcept { return _parent->_internalSpan.end(); }
[[nodiscard]] constexpr reverse_iterator rbegin() const noexcept { return _parent->_internalSpan.rbegin(); }
[[nodiscard]] constexpr reverse_iterator rend() const noexcept { return _parent->_internalSpan.rend(); }
Expand Down Expand Up @@ -555,9 +555,9 @@ class CircularBuffer {
[[nodiscard]] constexpr std::size_t size() const noexcept { return _internalSpan.size(); }
[[nodiscard]] constexpr std::size_t size_bytes() const noexcept { return size() * sizeof(T); }
[[nodiscard]] constexpr bool empty() const noexcept { return _internalSpan.empty(); }
[[nodiscard]] constexpr iterator cbegin() const noexcept { return _internalSpan.cbegin(); }
[[nodiscard]] constexpr iterator cbegin() const noexcept { return _internalSpan.begin(); }
[[nodiscard]] constexpr iterator begin() const noexcept { return _internalSpan.begin(); }
[[nodiscard]] constexpr iterator cend() const noexcept { return _internalSpan.cend(); }
[[nodiscard]] constexpr iterator cend() const noexcept { return _internalSpan.end(); }
[[nodiscard]] constexpr iterator end() const noexcept { return _internalSpan.end(); }
[[nodiscard]] constexpr const T& front() const noexcept { return _internalSpan.front(); }
[[nodiscard]] constexpr const T& back() const noexcept { return _internalSpan.back(); }
Expand Down
Loading