using a custom class in a list
From: cppaddict (cppaddict_at_yahoo.com)
Date: 10/14/03
- Next message: Samuel Barber: "Re: have a short, need to extract 8 bits so I can have a char"
- Previous message: WW: "Re: Using printf on char array"
- Next in thread: Victor Bazarov: "Re: using a custom class in a list"
- Reply: Victor Bazarov: "Re: using a custom class in a list"
- Reply: Jonathan Mcdougall: "Re: using a custom class in a list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 14 Oct 2003 00:36:30 GMT
What do I have to do in order to create a list of one of my own classes?
That is, in order for:
list<myClass> myList;
to be a valid statement. I know I might have to define an iterator on it,
or implement operators like ++, but I don't know the details. Can anyone
let me know, or point to a good reference on the web?
Thanks,
cppaddict
- Next message: Samuel Barber: "Re: have a short, need to extract 8 bits so I can have a char"
- Previous message: WW: "Re: Using printf on char array"
- Next in thread: Victor Bazarov: "Re: using a custom class in a list"
- Reply: Victor Bazarov: "Re: using a custom class in a list"
- Reply: Jonathan Mcdougall: "Re: using a custom class in a list"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|