FastLED 3.9.15
Loading...
Searching...
No Matches

◆ push_front()

template<typename T>
bool fl::CircularBuffer< T >::push_front ( const T & value)
inline

Definition at line 42 of file circular_buffer.h.

42 {
43 if (full()) {
44 mHead = decrement(mHead); // Overwrite the oldest element
45 }
48 return true;
49 }
fl::scoped_array< T > mBuffer
size_t decrement(size_t index) const

References decrement(), full(), mBuffer, mHead, and mTail.

+ Here is the call graph for this function: