takeRetainedValue()
Gets the value of this unmanaged reference as a managed reference and consumes an unbalanced retain of it.
Declaration
func takeRetainedValue() -> InstanceReturn Value
The object referenced by this Unmanaged instance.
Discussion
This is useful when a function returns an unmanaged reference and you know that you’re responsible for releasing the result.