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

◆ push_front() [1/2]

template<typename T, typename Allocator = fl::allocator<T>>
void fl::deque< T, Allocator >::push_front ( const T & value)
inline

Definition at line 312 of file deque.h.

312 {
314 mFront = (mFront - 1 + mCapacity) % mCapacity;
315 mAlloc.construct(&mData[mFront], value);
316 ++mSize;
317 }
void ensure_capacity(fl::size min_capacity)
Definition deque.h:27
T * mData
Definition deque.h:19
fl::size mFront
Definition deque.h:22
fl::size mCapacity
Definition deque.h:20
fl::size mSize
Definition deque.h:21
Allocator mAlloc
Definition deque.h:23