How to sort a range

Chris Wright via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 9 09:03:14 PST 2016


On Wed, 09 Mar 2016 14:28:11 +0000, cym13 wrote:

> Note that an input range isn't even remotely a container

Which is why sort() has template constraints beyond isInputRange. The 
constraints ensure that it is possible to swap values in the range.


More information about the Digitalmars-d-learn mailing list