MCPcopy Create free account
hub / github.com/FastLED/FastLED / resize

Function resize

src/fl/stl/vector.h:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 }
172
173 void resize(fl::size n) FL_NOEXCEPT {
174 while (current_size < n) {
175 push_back(T());
176 }
177 while (current_size > n) {
178 pop_back();
179 }
180 }
181
182 // Get the current size of the vector
183 constexpr fl::size size() const FL_NOEXCEPT { return current_size; }

Callers 12

dequeMethod · 0.70
resizeMethod · 0.70
string_nMethod · 0.70
resizeMethod · 0.70
assignMethod · 0.70
bitset_inlinedClass · 0.70
push_backMethod · 0.70
bitset_dynamicMethod · 0.70
bitset_dynamicClass · 0.70
assignMethod · 0.70
push_backMethod · 0.70
resizeMethod · 0.70

Calls 2

push_backFunction · 0.85
TEnum · 0.85

Tested by

no test coverage detected