I understand the principle point of references is to avoid making copies of large structures, but what if a function you\'re writing itself creates a large structure? Is it
That depends on if your compiler supports return value optimization (most do) and if the code qualifies for that optimization.