On Sunday, 16 September 2018 at 16:50:32 UTC, Neia Neutuladh wrote:
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];

Thanks.

However, I just realized that I need to cast the array of nullables to an array of underlying unnulled types and search that array using an unnulled key. So I have no use for the nullValue, anyway.

Reply via email to