FastLED
3.9.15
Loading...
Searching...
No Matches
◆
swap()
template<typename T, typename Allocator = fl::allocator<T>>
void
fl::deque
< T, Allocator >::swap
(
deque
< T, Allocator > &
other
)
inline
Definition at line
362
of file
deque.h
.
362
{
363
if
(
this
!= &
other
) {
364
T
*
temp_data
=
mData
;
365
fl::size
temp_capacity
=
mCapacity
;
366
fl::size
temp_size
=
mSize
;
367
fl::size
temp_front
=
mFront
;
368
Allocator
temp_alloc
=
mAlloc
;
369
370
mData
=
other
.
mData
;
371
mCapacity
=
other
.
mCapacity
;
372
mSize
=
other
.
mSize
;
373
mFront
=
other
.
mFront
;
374
mAlloc
=
other
.
mAlloc
;
375
376
other
.
mData
=
temp_data
;
377
other
.
mCapacity
=
temp_capacity
;
378
other
.
mSize
=
temp_size
;
379
other
.
mFront
=
temp_front
;
380
other
.
mAlloc
=
temp_alloc
;
381
}
382
}
fl::deque::mData
T * mData
Definition
deque.h:19
fl::deque::mFront
fl::size mFront
Definition
deque.h:22
fl::deque::mCapacity
fl::size mCapacity
Definition
deque.h:20
fl::deque::mSize
fl::size mSize
Definition
deque.h:21
fl::deque::mAlloc
Allocator mAlloc
Definition
deque.h:23
fl::deque
Definition
deque.h:17
fl
deque
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2