We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee60890 commit faa1e37Copy full SHA for faa1e37
documentation/cxx-interop/index.md
@@ -1255,7 +1255,7 @@ object.doSomething()
1255
// `object` will be released here.
1256
```
1257
1258
-#### Calling conventions for returning Shared Reference Types
+#### Calling conventions when returning Shared Reference Types from C++ to Swift
1259
1260
When C++ functions and methods return `SWIFT_SHARED_REFERENCE` types, it is necessary to specify the ownership of the returned value.
1261
For this you should use the `SWIFT_RETURNS_RETAINED` and `SWIFT_RETURNS_UNRETAINED` annotations on functions and methods.
0 commit comments