You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, `view2` will have get all of the lifetime dependencies of `view1`
345
-
after a call to `copyView`. a
344
+
Here, `view2` inherits the lifetime dependencies of `view1`, so callers of `copyView` must ensure that whatever they pass as `view2` does not outlive `view1`.
346
345
347
346
We can use this annotation to specify that a parameter's lifetime dependencies are captured by the implicit `this` object, or
348
347
conversely, that an inout argument captures the lifetime dependencies of `this`:
@@ -392,8 +391,8 @@ types, and the user with a safe and convenient interface to those imported APIs.
392
391
### C++ `std::span` Support
393
392
394
393
APIs taking or returning C++'s `std::span` with sufficient lifetime
395
-
annotations will automatically get overloads taking/returning Swift
396
-
`Span`.
394
+
annotations will automatically get safe overloads take or return Swift
395
+
`Span` and `MutableSpan` types.
397
396
398
397
The following table summarizes the generated convenience overloads:
0 commit comments