1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[ADT] add iterator_range::empty()

llvm-svn: 361944
This commit is contained in:
Sam McCall 2019-05-29 10:39:01 +00:00
parent f9d10cdb6f
commit c52166a16d

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.