mirror of https://github.com/AxioDL/metaforce.git
23 lines
307 B
C++
23 lines
307 B
C++
#ifndef __RSTL_HPP__
|
|
#define __RSTL_HPP__
|
|
|
|
#include <vector>
|
|
#include <stdlib.h>
|
|
|
|
namespace rstl
|
|
{
|
|
|
|
/**
|
|
* @brief Vector reserved on construction
|
|
*/
|
|
template <class T, size_t N>
|
|
class reserved_vector : public std::vector<T>
|
|
{
|
|
public:
|
|
reserved_vector() {this->reserve(N);}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // __RSTL_HPP__
|