Skip to content

Commit 8260ab7

Browse files
committed
Added video lengths.
1 parent 86241c5 commit 8260ab7

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

cpp/cpp5/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## ruleof5.cpp
44

5-
[Video](https://youtu.be/dbc7HAcMD4c)
5+
[Video](https://youtu.be/dbc7HAcMD4c) (20:07)
66
*Demonstrates in which situations the constructor, destructor, copy assignment operator, move constructor, and move assignment operator methods get called."
77

88
The purpose of this video is to demonstrate *when* the methods get called, **not how to write the methods**. Note that in practice you would only want to write these methods if necessary (Rule of 5). The class we start with technically doesn't need any of these methods (Rule of Zero).
@@ -11,31 +11,31 @@ NOTE: After the video was completed I updated the source to add an `explicit` mo
1111

1212
## smartptr1.cpp
1313

14-
[Video](https://youtu.be/odTiBLk09DA)
14+
[Video](https://youtu.be/odTiBLk09DA) (11:28)
1515
*Introduction to smart pointers in C++ - declaring and working with shared_ptr & unique_ptr*
1616

1717
In general, unique_ptr is preferred since shared_ptr may not free resources if there are pointers still holding the resource.
1818

1919
## smartptr2.cpp
2020

21-
[Video](https://youtu.be/2RMhCQn2qOY)
21+
[Video](https://youtu.be/2RMhCQn2qOY) (4:14)
2222
*Demonstration of unique_ptr to an object with a destructor*
2323

2424
## exceptions.cpp
2525

26-
[Video](https://youtu.be/uV7VrfDd33o)
26+
[Video](https://youtu.be/uV7VrfDd33o) (9:28)
2727
*Example of C++ exceptions*
2828

2929
## constintptr.cpp
3030

31-
[Video](https://youtu.be/0Xo18Ozh09Q)
31+
[Video](https://youtu.be/0Xo18Ozh09Q) (5:29)
3232
*Demonstration of allocating constant pointers in differnt ways*
3333

3434
## variant.cpp
3535

36-
[Video](https://youtu.be/uEJy4QGKWIk)
36+
[Video](https://youtu.be/uEJy4QGKWIk) (6:23)
3737
*C++ variants*
3838

3939
## namespace.cpp
4040

41-
*Example of defining * using a namespace*
41+
Example of using a namespace

0 commit comments

Comments
 (0)