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

◆ push_back()

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

Definition at line 29 of file circular_buffer.h.

29 {
30 if (mCapacity == 0) return false;
31 if (mFull) {
32 // Overwrite oldest: advance tail
34 }
35 mData[mHead] = value;
37 if (mHead == mTail) {
38 mFull = true;
39 }
40 return true;
41 }
fl::size increment(fl::size index) const

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

+ Here is the call graph for this function: