unwrap

Get pointer to value. If T is a reference type then T is returned

Use this to safely access reference types, or to get at the raw value of non reference types via a non-null pointer.

It is recommended that you access internal values by using orElse instead though

ref
unwrap
(
T
)
(
inout auto ref Optional!T opt
)

Return Value

Type: auto ref

Pointer to value or null if empty. If T is reference type, returns reference

Meta