Invokes body
with an UnsafeMutablePointer
to arg
and returns the
result. Useful for calling Objective-C APIs that take "in/out"
parameters (and default-constructible "out" parameters) by pointer
Declaration
func withUnsafeMutablePointer<T, Result>(inout arg: T, body: @noescape UnsafeMutablePointer<T> -> Result) -> Result