STL sort on arrays of pointers
From: Der Andere (matieuloeschmich_at_gmx.net)
Date: 04/30/04
- Next message: Steven T. Hatton: "Re: forward declarations and namespaces?"
- Previous message: Leor Zolman: "Re: cin, iostream problems"
- Next in thread: Leor Zolman: "Re: STL sort on arrays of pointers"
- Reply: Leor Zolman: "Re: STL sort on arrays of pointers"
- Reply: Jeff Schwab: "Re: STL sort on arrays of pointers"
- Reply: Martin Eisenberg: "[OT] STL sort on arrays of pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Apr 2004 01:34:33 +0200
I have an array of pointers (to a class) which I want to have sorted. I have
implemented the < operator for the class but I guess STL sort will sort the
pointers according to _their_ values (the addresses). Or will it work as I
intended? Do you know ways to circumvent the problem?
Thanks,
Matthias
-- Für emails Anweisung in der Adresse befolgen
- Next message: Steven T. Hatton: "Re: forward declarations and namespaces?"
- Previous message: Leor Zolman: "Re: cin, iostream problems"
- Next in thread: Leor Zolman: "Re: STL sort on arrays of pointers"
- Reply: Leor Zolman: "Re: STL sort on arrays of pointers"
- Reply: Jeff Schwab: "Re: STL sort on arrays of pointers"
- Reply: Martin Eisenberg: "[OT] STL sort on arrays of pointers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|