[cfe-users] C++ lambdas more expensive than blocks?
Jens Alfke via cfe-users
cfe-users at lists.llvm.org
Mon Oct 24 18:33:42 PDT 2016
> On Oct 24, 2016, at 12:00 PM, Benjamin Kramer <benny.kra at gmail.com> wrote:
> a helper class such as llvm::function_ref might come
> in handy, which acts like a function pointer but also allows captures
> to be passed around.
Thanks. Is that class something I can just copy-and-paste into my code? Will it work with other compilers like GCC or MSVC?
(Sorry if these are naive questions; I’m not knowledgeable enough about templates to be able to understand that source code.)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users