git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244620
91177308-0d34-0410-b5e6-
96231b3b80d8
IteratorT end() const { return end_iterator; }
};
+template <typename IteratorT>
+IteratorT begin(const iterator_range<IteratorT> &R) {
+ return R.begin();
+}
+
+template <typename IteratorT>
+IteratorT end(const iterator_range<IteratorT> &R) {
+ return R.end();
+}
+
/// \brief Convenience function for iterating over sub-ranges.
///
/// This provides a bit of syntactic sugar to make using sub-ranges