isOptional

Checks if T is an optional type

Members

Manifest constants

isOptional
enum isOptional;
Undocumented in source.

Examples

import optional: Optional;

assert(isOptional!(Optional!int) == true);
assert(isOptional!int == false);
assert(isOptional!(int[]) == false);

Meta