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 44 of file circular_buffer.h.

44 {
45 if (full()) {
46 mHead = decrement(mHead); // Overwrite the oldest element
47 }
50 return true;
51 }
fl::scoped_array< T > mBuffer
fl::size decrement(fl::size index) const

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

+ Here is the call graph for this function: