[ADT] add iterator_range::empty()

llvm-svn: 361944
This commit is contained in:
Sam McCall 2019-05-29 10:39:01 +00:00
parent 8ac7b2d07b
commit 7964f6fe5f
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public:
IteratorT begin() const { return begin_iterator; }
IteratorT end() const { return end_iterator; }
bool empty() const { return begin_iterator == end_iterator; }
};
/// Convenience function for iterating over sub-ranges.