[PATCH] D60788: [Support][JSON] Add reserve() to json Array
Anton Afanasyev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 12:43:29 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL358520: [Support][JSON] Add reserve() to json Array (authored by anton-afanasyev, committed by ).
Herald added a subscriber: kristina.
Changed prior to commit:
https://reviews.llvm.org/D60788?vs=195419&id=195438#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60788/new/
https://reviews.llvm.org/D60788
Files:
llvm/trunk/include/llvm/Support/JSON.h
Index: llvm/trunk/include/llvm/Support/JSON.h
===================================================================
--- llvm/trunk/include/llvm/Support/JSON.h
+++ llvm/trunk/include/llvm/Support/JSON.h
@@ -179,6 +179,7 @@
bool empty() const { return V.empty(); }
size_t size() const { return V.size(); }
+ void reserve(size_t S) { V.reserve(S); }
void clear() { V.clear(); }
void push_back(const Value &E) { V.push_back(E); }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60788.195438.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190416/f6d28bac/attachment.bin>
More information about the llvm-commits
mailing list