// Stolen from Ciekce - Stormphrax #pragma once #include #include namespace internal { template struct MultiArrayImpl { using Type = std::array::Type, N>; }; template struct MultiArrayImpl { using Type = std::array; }; } template using MultiArray = typename internal::MultiArrayImpl::Type;