[PATCH] D48349: [ADT] Add llvm::unique_function which is like std::function but supporting move-only closures.

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 12:03:30 PDT 2018


In that case maybe `FunctionExtras.h` in keeping with the llvm naming
spirit
On Wed, Jun 20, 2018 at 11:39 AM Chandler Carruth via Phabricator <
reviews at reviews.llvm.org> wrote:

> chandlerc added a comment.
>
> In https://reviews.llvm.org/D48349#1138032, @zturner wrote:
>
> > Not to suggest the obvious, but `UniqueFunction.h`?
>
>
> If people prefer that, totally fine with me.
>
> I went with this because we might want to merge `llvm::function_ref` into
> this file. And we might want to add `llvm::function` rather than relying on
> `std::function` given the amount of churn in that part of the standard
> library.
>
>
> Repository:
>   rL LLVM
>
> https://reviews.llvm.org/D48349
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/8edb603d/attachment.html>


More information about the llvm-commits mailing list