diff options
author | Francesco Borzì <borzifrancesco@gmail.com> | 2024-07-31 01:06:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-30 20:06:46 -0300 |
commit | 02a05fbd4c640b33b1e03075681f169db2fb6ab2 (patch) | |
tree | cfe8879750af8cd87d3ebbea244dd88c52e47275 /src/common/Utilities/CircularBuffer.h | |
parent | 06a608d244cf24d5077cbcdf547993d2a0e30659 (diff) |
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports
* fix: build
* chore: fix build
* chore: size_t -> std::size_t
* chore: fix fuckup from previous commit
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build with std::size_t
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
Diffstat (limited to 'src/common/Utilities/CircularBuffer.h')
-rw-r--r-- | src/common/Utilities/CircularBuffer.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/common/Utilities/CircularBuffer.h b/src/common/Utilities/CircularBuffer.h index 898ab1a11e..4c23099c9e 100644 --- a/src/common/Utilities/CircularBuffer.h +++ b/src/common/Utilities/CircularBuffer.h @@ -17,7 +17,7 @@ template <typename T> class CircularBuffer { public: - explicit CircularBuffer(size_t size) : + explicit CircularBuffer(std::size_t size) : buf_(std::unique_ptr<T[]>(new T[size])), max_size_(size) { @@ -52,14 +52,14 @@ public: return full_; } - [[nodiscard]] size_t capacity() const + [[nodiscard]] std::size_t capacity() const { return max_size_; } - [[nodiscard]] size_t size() const + [[nodiscard]] std::size_t size() const { - size_t size = max_size_; + std::size_t size = max_size_; if (!full_) { @@ -95,9 +95,9 @@ public: private: std::mutex mutex_; std::unique_ptr<T[]> buf_; - size_t head_ = 0; - size_t tail_ = 0; - const size_t max_size_; + std::size_t head_ = 0; + std::size_t tail_ = 0; + const std::size_t max_size_; bool full_ = false; }; #endif |