Top "Deep-copy" questions

A deep copy of an object is a separate, fully independent duplicate of that object, such that any references / pointers it holds to other objects refer to deep copies of those to which the original's refer.

C Programming. How to deep copy a struct?

I have the following two structs where "child struct" has a "rusage struct" as an element. Then I create two …

c struct memcpy deep-copy
Copying nested lists in Python

I want to copy a 2D list, so that if I modify one list, the other is not modified. For …

python list copy deep-copy
Deep copy duplicate() of Java's ByteBuffer

java.nio.ByteBuffer#duplicate() returns a new byte buffer that shares the old buffer's content. Changes to the old buffer's …

java nio deep-copy bytebuffer
How to copy a NSMutableArray

I would simply like to know how to copy a NSMutableArray so that when I change the array, my reference …

iphone xcode copy nsmutablearray deep-copy
Alternative of strcpy in c++

In C i used strcpy to make a deep copy of a string, but is it still 'fine' to use …

c++ deep-copy strcpy
What is the difference between being shallowly and deeply equal? How is this applied to caching?

Found the following in my notes, but I am unable to make sense of it: Primitive type wrapper classes implement …

java caching deep-copy shallow-copy
How to copy a class instance in python?

I would like to make a copy of a class instance in python. I tried copy.deepcopy but I get …

python class deep-copy
How can I make a deep copy in Objective-C?

I'm learning ios development and I'm confused with deep copying in Objective-C. For example,I have three class below. Now …

objective-c deep-copy
Python dictionary deepcopy

I was wondering in how does exactly deepcopy work in the following context: from copy import deepcopy def copyExample: self.…

python dictionary deep-copy
Quicker way to deepcopy objects in golang, JSON vs gob

I am using go 1.9. And I want to deepcopy value of object into another object. I try to do it …

json go encoding deep-copy gob