Hi,
I was looking at the MultiSet STL structure with some "less" keyword. I was told that we can use the "MultiSet" STL structure to automatically sort the content.
Is it possible to store and Sort CLASS objects based on a class variable value in it .
i.e.
multiset <Event, less<Event> > _queue;
where Event is a class with the variables in it
"processID
Time
typeofEvent"
How do I specify that the class objects in the multiset be sorted based on the TIME value of the class object?
Thank You in Advance.
I was looking at the MultiSet STL structure with some "less" keyword. I was told that we can use the "MultiSet" STL structure to automatically sort the content.
Is it possible to store and Sort CLASS objects based on a class variable value in it .
i.e.
multiset <Event, less<Event> > _queue;
where Event is a class with the variables in it
"processID
Time
typeofEvent"
How do I specify that the class objects in the multiset be sorted based on the TIME value of the class object?
Thank You in Advance.
Comment