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

◆ push_front()

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

Definition at line 71 of file circular_buffer.h.

71 {
72 if (mCapacity == 0) return false;
73 if (mFull) {
74 // Overwrite newest: retreat head
76 }
78 mData[mTail] = value;
79 if (mHead == mTail) {
80 mFull = true;
81 }
82 return true;
83 }
fl::size decrement(fl::size index) const

References decrement(), mCapacity, mData, mFull, mHead, mTail, and fl::type_rank< T >::value.

+ Here is the call graph for this function: