#pragma once #include namespace devilution { template struct AutofillArray : public std::array { using std::array::array; explicit AutofillArray(T x) { std::array::fill(x); } AutofillArray() : AutofillArray(0) { } template AutofillArray(const T &x, const Xs &...xs) : std::array({ x, static_cast(xs)... }) { } }; } //namespace devilution