mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpiutil] Improve wpi::circular_buffer iterators (#3410)
The implementation of wpi::circular_buffer has been effectively replaced with a dynamically sized copy of wpi::static_circular_buffer with a resize() member function.
This commit is contained in:
@@ -16,9 +16,7 @@ namespace wpi {
|
||||
template <class T, size_t N>
|
||||
class static_circular_buffer {
|
||||
public:
|
||||
static_assert(N > 0, "The circular buffer size shouldn't be zero.");
|
||||
|
||||
constexpr static_circular_buffer() = default;
|
||||
static_assert(N > 0, "Circular buffer size cannot be zero.");
|
||||
|
||||
class iterator {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user