Function SuperStruct.opCast

Extract the wrapped value of type T from the SuperStruct. Throws a VariantException if conversion to T is not possible.

Prototype

auto opCast(T)()
if (staticIndexOf!(T, SubTypes) >= 0);

Authors

Ryan Roden-Corrent (rcorre)

Copyright

© 2015, Ryan Roden-Corrent

License

MIT