You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/move_semantics.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,9 @@ It allocates this memory using some magic function `std::byte* AllocateMemory(st
94
94
> At this point it is not important how exactly the memory allocation happens. We will talk about it in the future. We just have to remember that allocating, copying and freeing memory are all time-wise costly operations.
95
95
> <!-- For the impatient, you can see example of such functions in the script, which is as always linked in the description below -->
96
96
> But for the impatient, here is one way to allocate the memory that we need in real code.
97
+
> <!--
98
+
> `CPP_SKIP_SNIPPET`
99
+
> -->
97
100
> ```cpp
98
101
> // 😱 Please don't do this in real code, for illustration purposes only!
99
102
> // 💡 We will talk about how to properly allocate and free memory later!
0 commit comments