Get answers to all your basic programming questions. No Ogre questions, please!
mako
Greenskin
Posts: 145 Joined: Wed Mar 14, 2007 7:16 pm
Location: Brazil
Quote
0
login to like this post
Post
by mako » Mon Apr 09, 2007 2:07 pm
Is there a class in c++ that implements a LinkedList?
with add, remove and iterator functions?
big_o
Goblin
Posts: 279 Joined: Sun Feb 19, 2006 1:08 am
Quote
0
login to like this post
Post
by big_o » Mon Apr 09, 2007 2:20 pm
Not built into c++ no, but there is an implementation in the stl.
Kencho
OGRE Retired Moderator
Posts: 4011 Joined: Fri Sep 19, 2003 6:28 pm
Location: Burgos, Spain
x 2
Contact:
Quote
1
login to like this post
Post
by Kencho » Mon Apr 09, 2007 2:24 pm
Yep, the STL is plenty of them. Vectors, lists, maps, deques, stacks...
haffax
OGRE Retired Moderator
Posts: 4823 Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 7
Contact:
Quote
0
login to like this post
Post
by haffax » Mon Apr 09, 2007 2:50 pm
Linked list is std::list. This one is doubly linked. A singly linked version is the non-standard std::slist, which most STL implementations also implement.
mako
Greenskin
Posts: 145 Joined: Wed Mar 14, 2007 7:16 pm
Location: Brazil
Quote
0
login to like this post
Post
by mako » Mon Apr 09, 2007 3:32 pm
thanks guys!