C++ Rule of 3/5 and Vectors

Channel:
Subscribers:
2,730
Published on ● Video Link: https://www.youtube.com/watch?v=z3QlnTRLNfw



Duration: 45:49
266 views
9


Today we made a simple Vector class (that doesn't grow) which makes for a good demonstration of the Rule of 3 (and the Rule of 5) and why we need deep copies versus shallow copies.







Tags:
c++
vector
std
pointer
Rule of 3
Rule of 5
deep copy
shallow copy