FastLED
3.9.15
Loading...
Searching...
No Matches
◆
FixedVector()
[6/7]
template<typename T, fl::size N>
fl::FixedVector
< T, N >::FixedVector
(
fl::initializer_list< T >
init
)
inline
Definition at line
120
of file
vector.h
.
120
:
current_size
(0) {
121
if
(
init
.
size
() >
N
) {
122
// Only assign the first N elements if the list is too long
123
auto
it
=
init
.
begin
();
124
for
(
fl::size
i
= 0;
i
<
N
&&
it
!=
init
.
end
(); ++
i
, ++
it
) {
125
push_back
(*
it
);
126
}
127
}
else
{
128
for
(
const
auto
&
value
:
init
) {
129
push_back
(
value
);
130
}
131
}
132
}
fl::FixedVector::end
iterator end() FL_NOEXCEPT
Definition
vector.h:395
fl::FixedVector::push_back
void push_back(const T &value) FL_NOEXCEPT
Definition
vector.h:191
fl::FixedVector::begin
iterator begin() FL_NOEXCEPT
Definition
vector.h:393
fl::FixedVector::current_size
fl::size current_size
Definition
vector.h:439
fl::FixedVector::size
constexpr fl::size size() const FL_NOEXCEPT
Definition
vector.h:183
fl::FixedVector
Definition
vector.h:86
fl
FixedVector
Generated on Tue Jun 16 2026 00:07:05 for FastLED by
1.13.2