MCPcopy Create free account
hub / github.com/bitfieldaudio/OTTO / generate_array

Function generate_array

src/util/algorithm.hpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48 template<int n, class Func>
49 constexpr auto generate_array(Func&& gen)
50 {
51 auto intseq = std::make_integer_sequence<int, n>();
52 return detail::generate_array_impl(std::move(intseq),
53 std::forward<Func>(gen));
54 }
55
56
57 /*

Callers

nothing calls this directly

Calls 1

generate_array_implFunction · 0.85

Tested by

no test coverage detected