Merge pull request #2123 from AndrejPetelin/AndrejPetelin-patch-1

Update c++.html.markdown
This commit is contained in:
ven 2016-01-31 16:38:42 +01:00
commit 25203692b0

View File

@ -948,7 +948,7 @@ for (int i = 0; i < 10; ++i)
// Following line sets size of v to 0, but destructors don't get called // Following line sets size of v to 0, but destructors don't get called
// and resources aren't released! // and resources aren't released!
v.empty(); v.clear();
v.push_back(Foo()); // New value is copied into the first Foo we inserted v.push_back(Foo()); // New value is copied into the first Foo we inserted
// Truly destroys all values in v. See section about temporary objects for // Truly destroys all values in v. See section about temporary objects for