Why does std::vector copy-construct instead of move-construct when the destructor may throw?
Channel:
Subscribers:
4,140
Published on ● Video Link: https://www.youtube.com/watch?v=Cz7VKuAlzro
Why does std::vector copy-construct instead of move-construct when the destructor may throw?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!
(stackoverflow.com/users/1593077/einpoklum)einpoklum |
(stackoverflow.com/users/2610810/caleth)Caleth |
(stackoverflow.com/users/1593077/einpoklum)einpoklum |
A special thanks goes out to the (https://stackoverflow.com/questions/74012130/why-does-stdvector-copy-construct-instead-of-move-construct-when-the-destructo)Stackexchange community |
I wish you all a wonderful day! Stay safe :)
Other Videos By Peter Schneider
Tags:
c++
stdvector
throwing-destructor
copy-constructor
move-semantics