[libcxx-commits] [PATCH] D101277: [libcxx][iterator] adds `indirectly_[regular_]unary_invocable` and `projected`

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 26 08:46:22 PDT 2021


Mordante added inline comments.


================
Comment at: libcxx/include/__iterator/indirect_callable.h:31
+
+// [indirectcallable.indirectinvocable], indirect callables
+template<class F, class I>
----------------
Please _Uglify and the rest of this file.


================
Comment at: libcxx/test/std/iterators/iterator.requirements/indirectcallable/indirectcallable.indirectinvocable/indirect_result_t.compile.pass.cpp:26
+static_assert(std::same_as<std::indirect_result_t<long S::*, S*>, long&>);
+static_assert(std::same_as<std::indirect_result_t<S && (S::*)(), S*>, S&&>);
+static_assert(std::same_as<std::indirect_result_t<int S::* (S::*)(int) const, S*, int*>, int S::*>);
----------------
I would like to see some tests returning cv-qualified references.
Can you test some other invokable objects?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101277



More information about the libcxx-commits mailing list