Why cocos needed own implemention of Vector ? #822
-
Hey im looking at the code trying to understand it , |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Its there because it stores classes inherited from the |
Beta Was this translation helpful? Give feedback.
-
Thanks , i see now in the code what it doing , it encapsulate the std vector and adds method implementions of its own . |
Beta Was this translation helpful? Give feedback.
Its there because it stores classes inherited from the
Ref
type, 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