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

Class has_get

tests/test_container_helpers.h:130–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128// Detect if type has get() method (smart pointers)
129template<typename T>
130class has_get {
131 template<typename C> static auto test(int) -> decltype(fl::declval<C>().get(), fl::true_type());
132 template<typename> static fl::false_type test(...);
133public:
134 static constexpr bool value = fl::is_same<decltype(test<T>(0)), fl::true_type>::value;
135};
136
137// Detect if type has pop(T&) method (circular buffers)
138template<typename T>

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected