aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorMCRusher <Modernwarfare3Minecraft64@gmail.com>2019-11-23 22:54:33 -0500
committerGitHub <noreply@github.com>2019-11-23 22:54:33 -0500
commit10e6cde083cf9ddd1ae72850d45c25b1258d0d7e (patch)
treeb38f84bf63cf00f3fb5c2beae445a09f0ecdf50f /src/codegen.cpp
parent29d7b5a80c9faf640c3db0de14cd229e90b2d8c3 (diff)
downloadzig-10e6cde083cf9ddd1ae72850d45c25b1258d0d7e.tar.gz
zig-10e6cde083cf9ddd1ae72850d45c25b1258d0d7e.zip
Added initCapacity and relevant test
Added ArrayList.initCapcity() as a way to preallocate a block of memory to reduce future allocations. Added a test "std.ArrayList.initCapacity" that ensures initCapacity adds no elements and increases capacity by at least the requested amount
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions