FastLED
3.9.15
Loading...
Searching...
No Matches
◆
FixedVector()
[6/6]
template<typename T, fl::size N>
fl::FixedVector
< T, N >::FixedVector
(
fl::initializer_list< T >
init
)
inline
Definition at line
111
of file
vector.h
.
111
:
current_size
(0) {
112
if
(
init
.
size
() >
N
) {
113
// Only assign the first N elements if the list is too long
114
auto
it
=
init
.
begin
();
115
for
(
fl::size
i
= 0;
i
<
N
&&
it
!=
init
.
end
(); ++
i
, ++
it
) {
116
push_back
(*
it
);
117
}
118
}
else
{
119
for
(
const
auto
&
value
:
init
) {
120
push_back
(
value
);
121
}
122
}
123
}
fl::FixedVector::size
constexpr fl::size size() const
Definition
vector.h:157
fl::FixedVector::begin
iterator begin()
Definition
vector.h:322
fl::FixedVector::current_size
fl::size current_size
Definition
vector.h:341
fl::FixedVector::push_back
void push_back(const T &value)
Definition
vector.h:165
fl::FixedVector::end
iterator end()
Definition
vector.h:324
fl::FixedVector
Definition
vector.h:78
fl
FixedVector
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2