diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-03 16:13:28 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-03 16:13:28 -0500 |
| commit | dfbc063f79dc1358208216b466c1bf8c44baa430 (patch) | |
| tree | 219c5f46a2e688fc1799117a1680102528691ce3 /src/ir_print.cpp | |
| parent | c90c256868a80cd35e9ba679ba082330592620c9 (diff) | |
| download | zig-dfbc063f79dc1358208216b466c1bf8c44baa430.tar.gz zig-dfbc063f79dc1358208216b466c1bf8c44baa430.zip | |
`std.mem.Allocator.create` replaced with better API
`std.mem.Allocator.createOne` is renamed to `std.mem.Allocator.create`.
The problem with the previous API is that even after copy elision,
the initalization value passed as a parameter would always be a copy.
With the new API, once copy elision is done, initialization
functions can directly initialize allocated memory in place.
Related:
* #1872
* #1873
Diffstat (limited to 'src/ir_print.cpp')
0 files changed, 0 insertions, 0 deletions
