diff --git a/app/src/main/cpp/skyline/common/utils.h b/app/src/main/cpp/skyline/common/utils.h index 60914b31..1d35b925 100644 --- a/app/src/main/cpp/skyline/common/utils.h +++ b/app/src/main/cpp/skyline/common/utils.h @@ -260,4 +260,15 @@ namespace skyline::util { return &value; } }; -} + + template + std::array MakeFilledArray(std::index_sequence, TArgs &&... args) + { + return {(void(Is), T(args...))...}; + } + + template + std::array MakeFilledArray(TArgs &&... args) { + return MakeFilledArray(std::make_index_sequence(), std::forward(args)...); + } +} \ No newline at end of file