[libc-commits] [PATCH] D148971: [libc] Adjust the `cpp:function` type to support lambdas

Thorsten via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 21 23:29:06 PDT 2023


tschuett added inline comments.


================
Comment at: libc/src/__support/CPP/functional.h:22
+/// A function type adapted from LLVM's function_ref type. This class does not
+/// own the callable, so it is not in general safe to store a function_ref.
+template <typename Fn> class function;
----------------
I am a bit confused by the naming. ISO C++ is going to call it std::function_ref.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148971/new/

https://reviews.llvm.org/D148971



More information about the libc-commits mailing list