如果一个函数要调用一个类型为 type 的变量 xxx,并且不会在调用过程中修改 xxx 的值,那么声明中 xxx 的类型写成 type,const type 和 const type& 哪种比较好?
type
const type
const type&