Browse Source

🚨 format autofill_array.h

pull/2583/head
Anders Jenbo 5 years ago
parent
commit
09cbbc30cf
  1. 13
      Source/utils/autofill_array.h

13
Source/utils/autofill_array.h

@ -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)... })
{
}
};

Loading…
Cancel
Save