lundi 25 janvier 2016

Sorting list of ints. TMP

I wonder it it is possible to sort numbers during complation? I mean something like that:

template<int...>
void sort(){
...
}

And:

sort<2,4,5,13,453>();

And I don't ask of solution or something like that. Please give me a hint or reference me.

Thanks in advance.

Aucun commentaire:

Enregistrer un commentaire