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

Function populate

tests/test_container_helpers.h:192–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190// Priority 1: For containers with push_back (vector, deque, list, circular_buffer)
191template<typename Container>
192typename fl::enable_if<has_push_back<Container>::value, void>::type
193populate(Container& c, fl::shared_ptr<int> ptr) {
194 c.push_back(ptr);
195}
196
197// Priority 2: For containers with insert(value) (set, unordered_set)
198template<typename Container>

Calls 3

push_backMethod · 0.45
insertMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected