aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2020-12-22 17:18:59 +0000
committerNathan James <n.james93@hotmail.co.uk>2020-12-22 17:18:59 +0000
commit5d10b8ad595da87bec8c66ad70a8daf86cd9266b (patch)
treea747c1a008110694bc7e374a780800c19ef55529 /lldb/test/API/python_api
parentbe85b3e4324b5a03abd929815b7fc1c2184db97a (diff)
downloadllvm-5d10b8ad595da87bec8c66ad70a8daf86cd9266b.zip
llvm-5d10b8ad595da87bec8c66ad70a8daf86cd9266b.tar.gz
llvm-5d10b8ad595da87bec8c66ad70a8daf86cd9266b.tar.bz2
[ADT] Add resize_for_overwrite method to SmallVector.
Analagous to the std::make_(unqiue|shared)_for_overwrite added in c++20. If T is POD, and the container gets larger, any new values added wont be initialized. This is useful when using SmallVector as a buffer where its planned to overwrite any potential new values added. If T is not POD, `new (Storage) T` functions identically to `new (Storage) T()` so this will function identically to `resize(size_type)`. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D93532
Diffstat (limited to 'lldb/test/API/python_api')
0 files changed, 0 insertions, 0 deletions