projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90ef438
)
Add iterator_range::end() predicate.
author
Rui Ueyama
<ruiu@google.com>
Wed, 23 Sep 2015 23:58:29 +0000
(23:58 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Wed, 23 Sep 2015 23:58:29 +0000
(23:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248447
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/iterator_range.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/iterator_range.h
b/include/llvm/ADT/iterator_range.h
index 3dd679bd9b79ee87a71bf543361b66eb3db9031f..6a83a0cbbbc5170428eaf2d325c75f2c9d3db037 100644
(file)
--- a/
include/llvm/ADT/iterator_range.h
+++ b/
include/llvm/ADT/iterator_range.h
@@
-45,6
+45,7
@@
public:
IteratorT begin() const { return begin_iterator; }
IteratorT end() const { return end_iterator; }
+ bool empty() const { return begin_iterator == end_iterator; }
};
/// \brief Convenience function for iterating over sub-ranges.