[libcxx-commits] [PATCH] D103335: [libcxx][ranges] Adds `common_iterator`.

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 15 15:52:23 PDT 2021


zoecarver added a comment.

> At runtime, not at compile time. 
> [...]
> I'm open to something like what Louis suggested.

To clarify, I'm suggesting that we add a //runtime// assertion that does some combination of `i == 1 || j == 1 || (!forward_iterator<It1> && !forward_iterator<It2>)`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103335



More information about the libcxx-commits mailing list