Just &, without in or out, will never make a copy of the object. It will always be the reference to the true object as the called function needs to be able to both read from and update the true object.
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Popular Topics
Advertisement