Could you please tell me what is the closest data type in C++ to python list? If there is nothing similar, how would you build it in C++?
std::vectors, std::lists, and arrays (or std::arrays) all have features similar to Python lists. Which data structure you want to choose depends on your requirements.