Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualsaejox

Posted 21 January 2013 - 06:55 AM

Use a custom allocator and move data to be continuous when its time to resize the container.
Alternatively you could wrap std::vector. ISO standard dictates std::vector is guaranteed to be continuous.
I chose std::vector route.

edit:
In addition, AngelScript allows you to have your own custom malloc and free. This is not utilized in scriptarray addon.

#2saejox

Posted 21 January 2013 - 06:55 AM

Use a custom allocator and move data to be continuous when its time to resize the container.
Alternatively you could wrap std::vector. ISO standard dictates std::vector is guaranteed to be continuous.
I chose std::vector route.

edit:
In addition, AngelScript allows you to have your own custom malloc and free. This is not utilized in scriptarray addon.

#1saejox

Posted 21 January 2013 - 06:51 AM

Use a custom allocator and move data to be continuous when its time to resize the container.

Alternatively you could wrap std::vector. ISO standard dictates std::vector is guaranteed to be continuous.

I chose std::vector route.


PARTNERS