5#ifndef V8_BASE_RING_BUFFER_H_
6#define V8_BASE_RING_BUFFER_H_
12template <
typename T, u
int8_t _SIZE = 10>
15 static constexpr uint8_t
kSize = _SIZE;
22 constexpr void Push(
const T& value) {
32 constexpr bool Empty()
const {
return Size() == 0; }
39 template <
typename Callback>
42 for (uint8_t
i =
pos_;
i > 0; --
i) {
static constexpr uint8_t kSize
constexpr bool Empty() const
constexpr T Reduce(Callback callback, const T &initial) const
RingBuffer(const RingBuffer &)=delete
RingBuffer & operator=(const RingBuffer &)=delete
constexpr uint8_t Size() const
constexpr void Push(const T &value)
constexpr RingBuffer()=default
ZoneVector< RpoNumber > & result
std::unique_ptr< ValueMirror > value