diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-08-08 22:44:15 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-08-08 22:44:15 +0200 |
commit | 22675cd8dc75d8b8d4b0f818f5b093efbc364802 (patch) | |
tree | 90156d37dccf13f012d535e7d92273259e3d5c17 /Clone a reference in a function to modify it.md | |
parent | 295b343aecf330e830d79f06e0efc511e7d76da1 (diff) |
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.md | 3 |
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 |