countUntil with negated pre-defined predicate?

Ali Çehreli acehreli at yahoo.com
Mon May 4 09:11:21 UTC 2020


On 5/3/20 2:59 PM, Harry Gillanders wrote:> On Sunday, 3 May 2020 at 
12:19:30 UTC, Robert M. Münch wrote:

 > an `auto ref` parameter[1] in a
 > function template is essentially a parameter that receives the
 > argument by reference if the templated type is a value-type,

Please replace "a value-type" above with "an lvalue".

 > whereas if the templated type is a reference-type, it receives the
 > argument by value.

And please replace "a reference-type" above with "an rvalue." :)

Ali

 > [1]: https://dlang.org/spec/template.html#auto-ref-parameters




More information about the Digitalmars-d-learn mailing list