mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
According to the documentation, llvm::function_ref is better suited for function parameters taking closures. But in this case we need to store a closure in the callback field and then invoke it multiple times. Therefore it is more appropriate to use std::function for this purpose.
25 KiB
25 KiB