[libcxx-commits] [PATCH] D108575: [libcxx] Define insert_iterator::iter with ranges::iterator_t

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Aug 25 08:37:40 PDT 2021


jloser added inline comments.


================
Comment at: libcxx/include/__iterator/insert_iterator.h:44
+    typename _Container::iterator iter;
+#endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_RANGES)
+  public:
----------------
ldionne wrote:
> You can remove this comment - the `#if` is so small that we can easily see the condition when looking at the `#endif`.
Just removed it. I saw the comment on #endif in other files which is why I wrote that. Do we typically only write a comment if the #ifdef is long (i.e. the #endif is far from the starting #ifdef)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108575



More information about the libcxx-commits mailing list