C++ 互操作性是 Swift 5.9 中的新功能。大量的 C++ API 可以直接从 Swift 调用,并且选择 Swift API 可以从 C++ 使用。

https://www.swift.org/documentation/cxx-interop/

https://ospfranco.com/swift-5.9-notes/