[libcxx-commits] [PATCH] D142335: [libc++][ranges] Implement `ranges::to`.
Konstantin Varlamov via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 16 00:41:30 PDT 2023
var-const marked 2 inline comments as done.
var-const added inline comments.
================
Comment at: libcxx/include/__ranges/to.h:161
+ _Container(std::declval<_Range>(), std::declval<_Args>()...));
+ return (_Result*){};
+
----------------
philnik wrote:
> ldionne wrote:
> >
> I think adding and removing a pointer is actually more efficient thann using `type_identity`, since adding a pointer and removing it avoids instantiating a new type every time.
Tagging @ldionne
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142335/new/
https://reviews.llvm.org/D142335
More information about the libcxx-commits
mailing list