Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Doubts with sorting stl vector... Pin
Cloaca10-Feb-04 10:14
Cloaca10-Feb-04 10:14 
GeneralRe: Doubts with sorting stl vector... Pin
David Crow10-Feb-04 10:34
David Crow10-Feb-04 10:34 
GeneralRe: Doubts with sorting stl vector... Pin
Cloaca11-Feb-04 6:48
Cloaca11-Feb-04 6:48 
GeneralRe: Doubts with sorting stl vector... Pin
valikac10-Feb-04 10:07
valikac10-Feb-04 10:07 
GeneralRe: Doubts with sorting stl vector... Pin
Cloaca10-Feb-04 10:18
Cloaca10-Feb-04 10:18 
GeneralRe: Doubts with sorting stl vector... Pin
jhwurmbach11-Feb-04 1:51
jhwurmbach11-Feb-04 1:51 
GeneralRe: Doubts with sorting stl vector... Pin
Cloaca11-Feb-04 6:57
Cloaca11-Feb-04 6:57 
GeneralRe: Doubts with sorting stl vector... Pin
antlers11-Feb-04 11:37
antlers11-Feb-04 11:37 
stds::sort is a template function. That means the arguments for the function determines what kind of code the compiler generates for the function (as opposed to a regular function, where the compiler always generates the same code). A template argument must be either a type or a constant--the compiler must be able to determine what the argument is at compile time, so it knows what code to generate. For the sort function, the template argument might have been a functor type or it might have been a constant that resolves to a function pointer. If you think about it, you can see how making the argument a type gives much more flexibility to the user of the template function, so that is the choice that the template designer made.
GeneralRe: Doubts with sorting stl vector... Pin
Cloaca12-Feb-04 4:22
Cloaca12-Feb-04 4:22 
Generalfatal crash on win98 & winMe, Need help. Pin
haritadala10-Feb-04 7:43
haritadala10-Feb-04 7:43 
GeneralRe: fatal crash on win98 & winMe, Need help. Pin
David Crow10-Feb-04 7:49
David Crow10-Feb-04 7:49 
GeneralRe: fatal crash on win98 & winMe, Need help. Pin
haritadala10-Feb-04 8:40
haritadala10-Feb-04 8:40 
GeneralRe: fatal crash on win98 & winMe, Need help. Pin
John R. Shaw10-Feb-04 10:57
John R. Shaw10-Feb-04 10:57 
GeneralRe: fatal crash on win98 & winMe, Need help. Pin
Peter Weyzen10-Feb-04 11:35
Peter Weyzen10-Feb-04 11:35 
GeneralRe: fatal crash on win98 & winMe, Need help. Pin
haritadala10-Feb-04 15:59
haritadala10-Feb-04 15:59 
GeneralRe: fatal crash on win98 & winMe, Need help. Pin
Peter Weyzen10-Feb-04 16:06
Peter Weyzen10-Feb-04 16:06 
GeneralEnum a directory.. Pin
RobJones10-Feb-04 6:06
RobJones10-Feb-04 6:06 
GeneralRe: Enum a directory.. Pin
Steve S10-Feb-04 6:09
Steve S10-Feb-04 6:09 
GeneralRe: Enum a directory.. Pin
RobJones10-Feb-04 6:17
RobJones10-Feb-04 6:17 
Generalnever mind my last post.. it works fine.. Pin
RobJones10-Feb-04 6:28
RobJones10-Feb-04 6:28 
GeneralRe: never mind my last post.. it works fine.. Pin
David Crow10-Feb-04 7:13
David Crow10-Feb-04 7:13 
GeneralRe: never mind my last post.. it works fine.. Pin
RobJones10-Feb-04 9:32
RobJones10-Feb-04 9:32 
GeneralRe: Enum a directory.. Pin
John M. Drescher10-Feb-04 10:26
John M. Drescher10-Feb-04 10:26 
Generalheader control with checkbox Pin
nurpinar10-Feb-04 6:02
nurpinar10-Feb-04 6:02 
GeneralRe: header control with checkbox Pin
Anonymous10-Feb-04 7:46
Anonymous10-Feb-04 7:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.