]> git.saurik.com Git - wxWidgets.git/commit
Use realloc() and placement new to manage vector's memory instead of
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 2 Jan 2008 22:58:29 +0000 (22:58 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 2 Jan 2008 22:58:29 +0000 (22:58 +0000)
commitc157b27e669db4448288bfc414e969b8e7263789
tree7c7fddda45bca728308accf149fc82f77b4524cb
parentcfa42cb87fa51b996b83edfe54cfed160248f474
Use realloc() and placement new to manage vector's memory instead of
copying objects in T[] array. This is both more efficient and
matches std::vector<> semantics (erase() destroys the object immediately,
T doesn't have to be default-constructible).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/vector.h