How to define such objects?

I need a way to represent Adjacency List with C++ containers, such as vector , list, i know the c implementation, but c++ implementation should be different and clear. Can i define the structure like this?
vector< list< int[2]> > obj;

Yes, you can definitely define this type of structure...
Is that a good idea?
Is it better than the pointer-based structure?
Last edited on
Topic archived. No new replies allowed.