There are several ways to define a 2D array in C++ and STL without memory manipulation, and the following codes illustrate two different methods:
int main () {
In C++11 use std::array:
std::array
std::array,2> a {{ {{1,2,3}}, {{4,5,6}} }};
Some usage:
a[0][2] = 13;