Fast linear search for non-null key in slice of Nullable(T, T.max)

Neia Neutuladh neia at ikeran.org
Sun Sep 16 16:50:32 UTC 2018


On Sunday, 16 September 2018 at 16:28:20 UTC, Per Nordlöw wrote:
> If I have
>
>     alias N = Nullable!(T, T nullValue)
>
> fed as template parameter to another template how can I
> at compile-time get the `nullValue` ?

import std.traits;
enum nullValue = TemplateArgsOf!(N)[1];


More information about the Digitalmars-d-learn mailing list