Link to home
Start Free TrialLog in
Avatar of prinx
prinx

asked on

dynamic 2d array

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

Avatar of LoungeLizard
LoungeLizard

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 []

ASKER CERTIFIED SOLUTION
Avatar of proskig
proskig

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial