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

Class has_insert_position

tests/test_container_helpers.h:419–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417// Detect if type has insert(const_iterator, value)
418template<typename T>
419class has_insert_position {
420 template<typename C> static auto test(int) -> decltype(
421 fl::declval<C>().insert(fl::declval<C>().begin(), fl::declval<fl::shared_ptr<int>>()),
422 fl::true_type()
423 );
424 template<typename> static fl::false_type test(...);
425public:
426 static constexpr bool value = fl::is_same<decltype(test<T>(0)), fl::true_type>::value;
427};
428
429// Detect if type has erase(const_iterator)
430template<typename T>

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected