Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FastLED/FastLED
/ setLoadFactor
Function
setLoadFactor
src/fl/stl/unordered_map.h:181–184 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
179
}
180
181
void setLoadFactor(float f) {
182
f = fl::clamp(f, 0.f, 1.f);
183
mLoadFactor = fl::map_range<float, u8>(f, 0.f, 1.f, 0, 255);
184
}
185
186
// Iterator support.
187
struct iterator {
Callers
2
unordered_map
Function · 0.85
max_load_factor
Function · 0.85
Calls
1
clamp
Function · 0.85
Tested by
no test coverage detected