[PATCH] D46668: [STLExtras] Add a range-based distance()

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 11:30:16 PDT 2018


craig.topper added a comment.

I think if its equivalent to range-based version of std::distance its name should be llvm::distance.

My comment was just an observation that a majority of the uses were for predecessors/successors and maybe we should just make that easier. We already have pred_empty and succ_empty. pred_size and succ_size don't seem like much of a stretch.


https://reviews.llvm.org/D46668





More information about the llvm-commits mailing list