Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion slides/01-cpp.html
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,9 @@ <h2>swap()</h2>
```
- Use when formal parameter should be *able to change the value* of the actual argument
- This is when references are used (and for return values); nobody bothers to declare one inside method
</script></section>
</script>
<img class="stretch" alt="Difference between passing by reference vs value" src="images/01-cpp/pass_by_ref_value.gif">
</section>

<section data-markdown><script type="text/template">
## Call By Constant Reference
Expand Down
Binary file added slides/images/01-cpp/pass_by_ref_value.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.