Skip to content

Commit

Permalink
format?
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Nov 12, 2024
1 parent d36ebe9 commit 51cba22
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions stm32-modules/include/common/core/circular_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace circular_buffer {

template <typename T, std::size_t buffer_size>
class CircularBuffer {
template <typename T, std::size_t buffer_size> class CircularBuffer {
public:
explicit CircularBuffer(bool allow_overwrite = false)
: _buffer(std::array<T, buffer_size>()),
_overwrite(allow_overwrite) {}
: _buffer(std::array<T, buffer_size>()), _overwrite(allow_overwrite) {}

[[nodiscard]] auto empty() const -> bool { return _count == 0; }

Expand Down Expand Up @@ -55,4 +53,4 @@ class CircularBuffer {
std::size_t _count = 0;
};

} // namespace circular_buffer
} // namespace circular_buffer

0 comments on commit 51cba22

Please sign in to comment.