dynamic 2d array

is there any container that can act like a dynamic 2d array..which size could be changed ?

Who is Participating?
well, it is definitely not so easy as it seems to be, but definitely doable. See the following link
Do you want both dimensions to be dynamically changeable? I don't think there is a standard STL class that can do that, but it should be easy enough to build your own. Just use a list of lists or something similar. If you want to have the same "feel" as a traditional array you can put that in your own class where you overload []

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.