|
-
November 25th, 2002, 09:18 PM
#1
List.h sort() Function
I want to create a list of the following structure:
struct Element() {
int node;
int timestamp;
}
list<Element *> elementList;
Is there a way to use the .sort() function from the list.h class to sort elementList ONLY by the timestamp?? If not, are there any other suggestions for doing this in an easy manner? Thanks in advance for any help!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|