Fixed-Length Array Sorting

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 4 03:53:51 PDT 2016


On Monday, 4 April 2016 at 09:36:19 UTC, Nordlöw wrote:
> I have some C++ that does optimal sorting of 3 and 4 elements at
>
> https://github.com/nordlow/justcxx/blob/master/sortn.hpp
>
> Would anybody be interesting in getting this integrated into
>
> std.algorithm.sorting
>
> ?

That's too readable. Try this: 
https://gist.github.com/Hackerpilot/eabb136a840a67b6fb27

Why 0x0607040502030001? I don't remember!


More information about the Digitalmars-d mailing list