[libcxx-commits] [PATCH] D108144: [libc++] Introduce _LIBCPP_EXPRESSION_EQUIVALENT

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 16 09:43:44 PDT 2021


ldionne created this revision.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

That macro is meant to reduce duplication when writing a simple function
that is expression-equivalent to something else, where we currently use
the `noexcept(noexcept(Z)) -> decltype(Z) { return Z; }` pattern.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108144

Files:
  libcxx/include/__config
  libcxx/include/__functional/bind_back.h
  libcxx/include/__functional/bind_front.h
  libcxx/include/__functional/compose.h
  libcxx/include/__functional/not_fn.h
  libcxx/include/__functional/perfect_forward.h
  libcxx/include/__ranges/iota_view.h
  libcxx/include/type_traits
  libcxx/include/variant

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108144.366662.patch
Type: text/x-patch
Size: 15905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210816/a414e819/attachment-0001.bin>


More information about the libcxx-commits mailing list