Advertisement Jump to content

Archived

This topic is now archived and is closed to further replies.

ianlo

STL C++ list

This topic is 5339 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I was wondering which is a better data structure for a std::list. To have a list of pointers to objects or a list of objects themselves? Would love to hear any comments!

Share this post


Link to post
Share on other sites
Advertisement
I''d go with a list of pointers. Surely if you''re going to use polymorphism. Otherwise, for simple things it doesn''t really matter.


SwSh website!

Share this post


Link to post
Share on other sites
Closing because this is a double post. Respond to the other thread

----------------------------------------
"Before criticizing someone, walk a mile in their shoes.
Then, when you do criticize them, you will be a mile away and have their shoes." -- Deep Thoughts
"If you have any trouble sounding condescending, find a Unix user to show you how it''s done." - Scott Adams
FaceHat Software -- Wear the hat.

Share this post


Link to post
Share on other sites

This topic is 5339 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!