std:: array.
new ++, , #/java ++.
( ), , , (std:: unique_ptr, std:: shared_ptr),
++, , , .
#include <list>
#incldue <array>
const int MAX = 256;
std::array<std::list<Point>, MAX> array_list;
def :
using MyContainer = std::array<std::list<Point>, 256>;
MyContainer array_list;
would be one way to have a array of lists
, std::vector ( ),
pre-++ 11 ( ) std::vector std:: array, , , std::vector C.
, C-:
:
std::list<Point> my_list_array[MAX];
, :
std::list<Point>* my_list_array = new std::list<Point>[MAX];