<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 28, 2014 at 11:21 AM, Nick Kledzik <span dir="ltr"><<a href="mailto:kledzik@apple.com" target="_blank">kledzik@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":adg" style="overflow:hidden">Author: kledzik<br>
Date: Tue Jan 28 13:21:27 2014<br>
New Revision: 200331<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=200331&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=200331&view=rev</a><br>
Log:<br>
Add BumpPtrAllocator::allocateCopy() utilities<br>
<br>
Makes it easy to use BumpPtrAllocator to make a copy of StringRef strings.<br></div></blockquote></div><br>This seems like a strange conflation of role. Why is allocate() + std::copy not sufficient? Or otherwise make these operations independent of the memory management used?</div>
</div>