<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div><div><br></div><div>The motivation for these utilities is that BumpPtrAllocator has a one line syntax for allocating and initializing a new *object* in the bump pointer pool:</div><div><br></div><div>    Foo *myFoo = (myAllocator) Foo(args);</div><div><br></div><div>But if you want to copy a string in to the bump pointer pool and get a StringRef to it, it is multiple steps.  With this patch, it is now just:</div><div><br></div><div>    StringRef myCopy = myStr.copy(myAllocator);</div><div><br></div><div>-Nick</div><div><br></div></body></html>