← Back to team overview

kicad-developers team mailing list archive

Re: Where comes from sort function?

 

Le Mardi 27 Avril 2010 10:38:28, Lorenzo Marcantonio a écrit :
> On Tue, 27 Apr 2010, Alain Portal wrote:
> > Le Mardi 27 Avril 2010 08:28:40, Lorenzo Marcantonio a écrit :
> >> On Mon, 26 Apr 2010, Alain Portal wrote:
> >>> Hi,
> >>> 
> >>> Can somebody tell me where comes from the sort fonction used at line
> >>> 314 in pcbnew/dialog_design_rules.cpp?
> >> 
> >> From ANSI C :D:D IIRC it's declared in stdlib.h
> > 
> > No it isn't
> > There is only a "qsort" function in stdlib.h (glibc-2.11.1)
> 
> Whooops you're right :D:D
> 
> Maybe it's the C++ sort templated automagically? I don't remember
> exactly how it works...

Perhaps here is what you talking about?
http://www.cppreference.com/wiki/stl/algorithm/sort

Problem is that don't help me to find where is the code of this function or 
algorithm.

Regards,
Alain
-- 
La version française des pages de manuel Linux
http://manpagesfr.free.fr



References