Will a copy gets created when we pass user defined. swift struct instantiated in C++ to Swift Function?

When i instantiate a structure defined in swift in C++ and then i pass it to swift function as a IN param, it is passed as a constant value to the function. Here the same structure instance is passed or a copy is created?

I don’t understand your question. I suspect you’re worried about the C++ copy constructors, but that’s just a guess based on reading between the lines.

It’d help if you posted a snippet that demonstrates the issue you’re trying to clarify.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Will a copy gets created when we pass user defined. swift struct instantiated in C++ to Swift Function?
 
 
Q