[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:
Tyler Veness
2021-06-05 21:08:12 -07:00
committed by GitHub
parent 8aecda03ed
commit 82856cf816
8 changed files with 393 additions and 297 deletions

View File

@@ -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: