A shallow clone of an object is a copy of the object only.
对象的浅表克隆只是对象本身的副本。
A shallow clone of an object, by contrast, is a copy of the object only.
相比之下,对象的浅表克隆只是对象本身的副本。
A shallow copy is fine if your structure is 1-dimensional, or if you do not need to clone any of the contained data structures.
浅拷贝是好的如果你是单维结构或者如果你不需要克隆任何包含于其中的数据结构,即简单不复制的数据结构。
应用推荐