Why cocos needed own implemention of Vector ? #822
|
Hey im looking at the code trying to understand it , |
Answered by
DelinWorks
Aug 27, 2022
Replies: 2 comments
|
Its there because it stores classes inherited from the |
0 replies
Answer selected by
halx99
|
Thanks , i see now in the code what it doing , it encapsulate the std vector and adds method implementions of its own . |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Its there because it stores classes inherited from the
Reftype, which is really useful, it retains an object in memory when it's inside the vector and releases it when it goes out. simple memory management trick