Nothrow front() when not empty()

Nordlöw via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 6 05:52:33 PST 2016


At

https://github.com/D-Programming-Language/phobos/pull/3752

it would be nice if

     return !haystack.empty && haystack.front.unaryFun!pred

was made nothrow.

Is this possible somehow?


More information about the Digitalmars-d-learn mailing list