How may I define a vector in C++11 such that its size is 4*5 so I can treat it like a matrix?
(I mean using operator []
like the following)
mat[2][3];
Update: The following gives me error:
#include <memory>
class Test{
std::vector<int> vect;
};
Error message:
implicit instantiation of undefined template 'std::__1::vector<int, std::__1::allocator<int> >'
std::vector<int> vect;