Providing a copy of the content is similar to using "pass by value."
提供内容的一个副本与使用“通过值传递(pass by value)”很相似。
Generally we pass them by value as a copy. So we cannot change them.
一般情况下,我们是传递变量值的一份拷贝,因而无法改变变量的值。
If you want to protect a structure against such modification, pass it by value.
如果要保护结构,避免这种修改,可通过值来传递结构。
If you want to protect a structure against such modification, pass it by value.
如果要保护结构,避免这种修改,可通过值来传递结构。
应用推荐