Whats the significance of return by reference?

后端 未结 11 1219
既然无缘
既然无缘 2021-02-13 00:15

In C++,

function() = 10;

works if the function returns a variable by reference.

What are the use cases of it?

11条回答
提交回复
热议问题