MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / array_fmap_impl

Function array_fmap_impl

Source/PatternEditor.cpp:1573–1576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1571
1572template <typename T, typename F, std::size_t N, std::size_t... Is>
1573constexpr std::array<std::invoke_result_t<F, T>, N>
1574array_fmap_impl(const std::array<T, N> &arr, F f, std::index_sequence<Is...>) {
1575 return {f(arr[Is])...};
1576}
1577
1578template <typename T, typename F, std::size_t N>
1579constexpr std::array<std::invoke_result_t<F, T>, N>

Callers 1

array_fmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected