#ifndef STATICARRAY_H #define STATICARRAY_H #include "Array.h" namespace Kylin { template class StaticArray : public Array { public: StaticArray() { this->m_array = m_space; } StaticArray(const StaticArray &other) { this->m_array = m_space; for (size_t i = 0; i < N; i++) { m_space[i] = other.m_space[i]; } } size_t size() const noexcept override { return N; } private: T m_space[N]; }; } // namespace Kylin #endif // STATICARRAY_H