FastLED
3.10.8
Loading...
Searching...
No Matches
◆
emplace()
template<typename T>
template<typename... Args>
iterator
fl::deque
< T >::emplace
(
const_iterator
pos
,
Args &&...
args
)
inline
Definition at line
783
of file
deque.h
.
783
{
784
fl::size
idx
=
pos
.mIndex;
785
if
(
idx
==
mSize
) {
786
emplace_back
(
fl::forward<Args>
(
args
)...);
787
return
iterator
(
this
,
idx
);
788
}
789
// Move-extend at the back so move-only T works. The moved-from
790
// slot at old logical mSize-1 is overwritten by the shift loop.
791
push_back
(
fl::move
((*
this
)[
mSize
- 1]));
792
for
(
fl::size
i
=
mSize
- 1;
i
>
idx
+ 1; --
i
) {
793
(*this)[
i
- 1] =
fl::move
((*
this
)[
i
- 2]);
794
}
795
(*this)[
idx
] =
T
(
fl::forward<Args>
(
args
)...);
796
return
iterator
(
this
,
idx
);
797
}
fl::deque::iterator
Definition
deque.h:179
fl::deque::push_back
void push_back(const T &value) FL_NO_EXCEPT
Definition
deque.h:602
fl::deque::mSize
fl::size mSize
Definition
deque.h:42
fl::deque::emplace_back
T & emplace_back(Args &&... args) FL_NO_EXCEPT
Definition
deque.h:800
fl::deque
Definition
deque.h:29
fl::fl::adl_barrier::move
constexpr remove_reference< T >::type && move(T &&t) FL_NO_EXCEPT
Definition
s16x16x4.h:30
fl
deque
Generated on Thu Oct 22 2026 05:46:05 for FastLED by
1.13.2