Skip to content
Snippets Groups Projects
Commit 9b195f83 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

[VecOps][NFC] Don't use the name TVec in the comments but rather RVec

parent 8a546ab9
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ void vo001_AdoptOrOwnMemory() ...@@ -37,7 +37,7 @@ void vo001_AdoptOrOwnMemory()
// Now, upon reallocation, the RVec stops adopting the memory and starts owning it. And yes, // Now, upon reallocation, the RVec stops adopting the memory and starts owning it. And yes,
// a copy is triggered. Indeed internally the storage of the RVec is an std::vector. Moreover, // a copy is triggered. Indeed internally the storage of the RVec is an std::vector. Moreover,
// the interface of the TVec is very, very similar to the one of std::vector: you have already // the interface of the RVec is very, very similar to the one of std::vector: you have already
// noticed it when the `data()` method was invoked, right? // noticed it when the `data()` method was invoked, right?
v2.push_back(UponCopyPrinter()); v2.push_back(UponCopyPrinter());
......
...@@ -39,7 +39,7 @@ print("%s and %s" %(v.data(), v2.data())) ...@@ -39,7 +39,7 @@ print("%s and %s" %(v.data(), v2.data()))
# Now, upon reallocation, the RVec stops adopting the memory and starts owning it. And yes, # Now, upon reallocation, the RVec stops adopting the memory and starts owning it. And yes,
# a copy is triggered. Indeed internally the storage of the RVec is an std::vector. Moreover, # a copy is triggered. Indeed internally the storage of the RVec is an std::vector. Moreover,
# the interface of the TVec is very, very similar to the one of std::vector: you have already # the interface of the RVec is very, very similar to the one of std::vector: you have already
# noticed it when the `data()` method was invoked, right? # noticed it when the `data()` method was invoked, right?
v2.resize(4) v2.resize(4)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment