[libcxx-commits] [PATCH] D107199: [libc++] Refactor __perfect_forward, bind_front and not_fn
Marshall Clow via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 30 16:58:23 PDT 2021
mclow.lists added inline comments.
================
Comment at: libcxx/include/__functional/bind_front.h:31-33
noexcept(noexcept(_VSTD::invoke(_VSTD::forward<_Args>(__args)...)))
-> decltype( _VSTD::invoke(_VSTD::forward<_Args>(__args)...))
{ return _VSTD::invoke(_VSTD::forward<_Args>(__args)...); }
----------------
Quuxplusone wrote:
> FWIW, I'd prefer to see lines 31-33 all indented one level (4 spaces).
> Alternatively, would it make sense to pull `_LIBCPP_EXPRESSION_EQUIVALENT` into `<__config>` or `<type_traits>` and then be able to use it here and below?
Historical note: I thought several times about writing something like `_LIBCPP_EXPRESSION_EQUIVALENT` for use with `less`, `greater`, etc., and always decided that it reduced the readability of the code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107199/new/
https://reviews.llvm.org/D107199
More information about the libcxx-commits
mailing list