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

Class has_erase

tests/test_container_helpers.h:431–439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429// Detect if type has erase(const_iterator)
430template<typename T>
431class has_erase {
432 template<typename C> static auto test(int) -> decltype(
433 fl::declval<C>().erase(fl::declval<C>().begin()),
434 fl::true_type()
435 );
436 template<typename> static fl::false_type test(...);
437public:
438 static constexpr bool value = fl::is_same<decltype(test<T>(0)), fl::true_type>::value;
439};
440
441// Detect if type has resize()
442template<typename T>

Callers

nothing calls this directly

Calls 2

eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected