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

Function retrieve

tests/test_container_helpers.h:232–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230// Priority 1: For containers with operator[0] (vector, deque, circular_buffer)
231template<typename Container>
232typename fl::enable_if<is_container_with_subscript<Container>::value, fl::shared_ptr<int>>::type
233retrieve(Container& c) {
234 return c[0];
235}
236
237// Priority 2: For containers with front() (list, queue)
238template<typename Container>

Callers 3

FL_TEST_FILEFunction · 0.85

Calls 4

frontMethod · 0.45
beginMethod · 0.45
popMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected