dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land.
Sounds good - thanks! ================ Comment at: llvm/include/llvm/ADT/iterator_range.h:27-33 +template <typename T> +constexpr bool is_random_iterator() { + return std::is_same< + typename std::iterator_traits<T>::iterator_category, + std::random_access_iterator_tag>::value; +} + ---------------- Is this how the C++ standard is doing things these days? Or is it usually done with variable templates? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67647/new/ https://reviews.llvm.org/D67647 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits