Common::Grid grid(cRect(-1,-1,3,3), "O"); grid.Resize(cRect(-2,-2,5,5), "X"); grid.Expand(0, 2, 0, 0, ">"); grid.Expand(2, 0, 0, 0, "<"); grid.Expand(0, 1, "-"); grid[cPoint(0,0)] = "A"; unsigned int column = 0; for(const auto &element : grid) { std::cout << element; column++; if(column == 9) { column = 0; std::cout << std::endl; } } Outputs: --------- <> <> <> <> <> ---------