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.

Deep copying array of nested objects in javascript

I am trying to deep copy array of nested objects in javascript. My array look like this var arr = [{name:"…

javascript arrays deep-copy
How to create a Bitmap deep copy

I'm dealing with Bitmaps in my application and for some purposes I need to create a deep copy of the …

c# bitmap deep-copy
Deep Copy using Reflection in an Extension Method for Silverlight?

So I'm trying to find a generic extension method that creates a deep copy of an object using reflection, that …

c# silverlight reflection silverlight-5.0 deep-copy
Concisely deep copy a slice?

In Go, what's a concise/well-performing way to deep copy a slice? I need to copy the slice to a …

go deep-copy
Deep Copy Constructor for binary tree

I am trying to create a deep copy of my binary tree data structure in C++. The problem is the …

c++ binary-tree copy-constructor deep-copy shallow-copy
Structure deep copy

This may be a very basic question but somehow it got me tricked... when I write test code, it seems …

c++ structure deep-copy
AngularJS : copy vs extend

Explanation : we come across some situation in which we need to copy one object to another object. In that case, …

javascript angularjs deep-copy shallow-copy
std::shared_ptr deep copy object

Can't find much on that for C++11 but only on boost. Consider the following class: class State { std::shared_ptr&…

c++11 shared-ptr deep-copy
C++: Deep copying a Base class pointer

I searched around and seems in order to perform this I need to change my Base class and want to …

c++ inheritance copy-constructor deep-copy
Is there a decent way of creating a copy constructor in python?

I realize questions quite similar to this have been asked, though not exactly this way. I'd like to have an …

python copy-constructor deep-copy