<div dir="ltr">That seems like a somewhat strange API - calling reserve down into the vector (& possibly the set, for things like DenseSet) seems more appropriate, no?</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 1, 2016 at 5:05 PM, Matthias Braun via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">MatzeB retitled this revision from "SetVector: Add front, pop_front and resize operations" to "SetVector: Add front, pop_front and additional constructor.".<br>
MatzeB updated the summary for this revision.<br>
MatzeB updated this revision to Diff 52448.<br>
MatzeB added a comment.<br>
<br>
New version which does not introduce the resize() (or reserve()) operation anymore in favor of a constructor allowing to supply (empty) instances for the vector and set.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D18579" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18579</a><br>
<br>
Files:<br>
  include/llvm/ADT/SetVector.h<br>
  unittests/ADT/SetVectorTest.cpp<br>
<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>