MCPcopy Create free account
hub / github.com/Neargye/magic_enum / all_invocable

Function all_invocable

include/magic_enum/magic_enum_utility.hpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55template <typename E, enum_subtype S, typename F,std::size_t... I>
56constexpr bool all_invocable(std::index_sequence<I...>) {
57 if constexpr (count_v<E, S> == 0) {
58 return false;
59 } else {
60 return (std::is_invocable_v<F, enum_constant<values_v<E, S>[I]>> && ...);
61 }
62}
63
64} // namespace magic_enum::detail
65

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected