33#ifndef DVD_CIRCULAR_BUFFER_H_
34#define DVD_CIRCULAR_BUFFER_H_
39template <
class T,
size_t N,
bool threadSafe = false>
45 if constexpr ( threadSafe )
52 if constexpr ( threadSafe )
69 void put(
const T& item)
84 [[nodiscard]]
const T&
get(
const size_t idx)
const
106 [[nodiscard]]
inline size_t size() const noexcept
120 [[nodiscard]]
inline bool empty() const noexcept
126 [[nodiscard]]
inline bool full() const noexcept
132 [[nodiscard]]
inline static size_t capacity() noexcept
size_t size() const noexcept
bool full() const noexcept
bool empty() const noexcept
const T & get(const size_t idx) const
bool fullLocked() const noexcept
static size_t capacity() noexcept
Handle console commands that start with a forward slash.