|
|
|
|
@ -4,9 +4,8 @@
|
|
|
|
|
|
|
|
|
|
namespace devilution { |
|
|
|
|
|
|
|
|
|
template<typename T, std::size_t N> |
|
|
|
|
struct AutofillArray: public std::array<T, N> |
|
|
|
|
{ |
|
|
|
|
template <typename T, std::size_t N> |
|
|
|
|
struct AutofillArray : public std::array<T, N> { |
|
|
|
|
using std::array<T, N>::array; |
|
|
|
|
|
|
|
|
|
explicit AutofillArray(T x) |
|
|
|
|
@ -15,13 +14,13 @@ struct AutofillArray: public std::array<T, N>
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
AutofillArray() |
|
|
|
|
: AutofillArray(0) |
|
|
|
|
: AutofillArray(0) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template<typename... Xs> |
|
|
|
|
AutofillArray(const T &x, const Xs &... xs) |
|
|
|
|
: std::array<T, N>({ x, static_cast<const T &>(xs)... }) |
|
|
|
|
template <typename... Xs> |
|
|
|
|
AutofillArray(const T &x, const Xs &...xs) |
|
|
|
|
: std::array<T, N>({ x, static_cast<const T &>(xs)... }) |
|
|
|
|
{ |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|