Skip to content

Commit c8522eb

Browse files
committed
[cxx-interop] Mark std::function as an owned type
`std::function` manages the lifetime of the underlying function pointer, therefore it should be imported as an owned type. rdar://103979602
1 parent 209bcf7 commit c8522eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Cxx/std/std.apinotes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ Namespaces:
1111
Tags:
1212
- Name: basic_string
1313
SwiftImportAs: owned
14+
- Name: function
15+
SwiftImportAs: owned
1416
- Name: vector
1517
SwiftImportAs: owned

0 commit comments

Comments
 (0)