auto ref function parameters in a free function

Vlad Levenfeld via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 3 22:33:09 PDT 2014


On Sunday, 3 August 2014 at 21:47:06 UTC, Artur Skawina via 
Digitalmars-d-learn wrote:
>  void sort (R, T = ElementType!R, alias compare = less_than)(R 
> range, T item)
>
> [should work iff the sort implementation only calls the 
> predicate]
>
> artur

This works! Thanks!


More information about the Digitalmars-d-learn mailing list