#ifndef __RSTL_HPP__ #define __RSTL_HPP__ #include #include #include "optional.hpp" namespace rstl { template using optional_object = std::experimental::optional; /** * @brief Vector reserved on construction */ template class reserved_vector : public std::vector { public: reserved_vector() {this->reserve(N);} reserved_vector(size_t n, const T& val) : std::vector(n, val) { } }; } #endif // __RSTL_HPP__