diff --git a/llvm/include/llvm/Support/JSON.h b/llvm/include/llvm/Support/JSON.h index 37baa7b45e4eb..a58332c912942 100644 --- a/llvm/include/llvm/Support/JSON.h +++ b/llvm/include/llvm/Support/JSON.h @@ -205,6 +205,7 @@ class Array { iterator insert(const_iterator P, Value &&E); template iterator insert(const_iterator P, It A, It Z); template iterator emplace(const_iterator P, Args &&...A); + iterator erase(const_iterator P); friend bool operator==(const Array &L, const Array &R); }; @@ -579,6 +580,7 @@ template inline Array::iterator Array::emplace(const_iterator P, Args &&...A) { return V.emplace(P, std::forward(A)...); } +inline Array::iterator Array::erase(const_iterator P) { return V.erase(P); } inline bool operator==(const Array &L, const Array &R) { return L.V == R.V; } /// ObjectKey is a used to capture keys in Object. Like Value but: