• Advertisement

Archived

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

Saying delete this in class [linked lists]

This topic is 5993 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

I''m making a linked list and now I''m implementing methods to remove elements from the list. So, is it safe to say delete this in a method of a class or do I have to do it outside the class. In this case, delete this would be last call of a method. I haven''t actually tried this yet, but my common sense says no, but perhaps there is a neat solution to achieve this.. Comments, ideas, suggestions?

Share this post


Link to post
Share on other sites
Advertisement
However, I''ve yet to find a situation where I couldn''t delete the object some other way--such as from the previous object in the list. Still, it might be useful.

---
blahpers

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://world.std.com/~buzzard/computer/iterate.html

Share this post


Link to post
Share on other sites

  • Advertisement