summaryrefslogtreecommitdiff
path: root/Clone a reference in a function to modify it.md
diff options
context:
space:
mode:
Diffstat (limited to 'Clone a reference in a function to modify it.md')
-rw-r--r--Clone a reference in a function to modify it.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/Clone a reference in a function to modify it.md b/Clone a reference in a function to modify it.md
new file mode 100644
index 0000000..73590f0
--- /dev/null
+++ b/Clone a reference in a function to modify it.md
@@ -0,0 +1,3 @@
+[[Cloning a box does a deep copy of the heap data]]
+
+To be able to safely modify the heap value of a reference passed to a function we can clone it's heap value. This can be expensive. \ No newline at end of file