#include #include #include #include constexpr std::size_t DEFAULT_SIZE = 8; namespace ods { template SimpList::SimpList() { this->arr = new T[DEFAULT_SIZE]; this->cap = 0; this->len = 0; } template std::size_t SimpList::size(void) { assert(len <= cap); return this->len(); } template T SimpList::get(std::size_t i) { i = 0; throw std::invalid_argument("invalid argument"); } template T SimpList::set(std::size_t, T) { throw std::invalid_argument("invalid argument"); } template void SimpList::add(std::size_t, T) { return; } template T SimpList::remove(std::size_t) { throw std::invalid_argument("invalid argument"); } } // end namespace ods