[llvm-commits] [llvm] r138107 - /llvm/trunk/include/llvm/ADT/IntervalMap.h
Jakob Stoklund Olesen
stoklund at 2pi.dk
Fri Aug 19 15:04:20 PDT 2011
Author: stoklund
Date: Fri Aug 19 17:04:19 2011
New Revision: 138107
URL: http://llvm.org/viewvc/llvm-project?rev=138107&view=rev
Log:
Add IntervalMap::const_iterator::atBegin().
It returns true when operator--() can be called.
Modified:
llvm/trunk/include/llvm/ADT/IntervalMap.h
Modified: llvm/trunk/include/llvm/ADT/IntervalMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/IntervalMap.h?rev=138107&r1=138106&r2=138107&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/IntervalMap.h (original)
+++ llvm/trunk/include/llvm/ADT/IntervalMap.h Fri Aug 19 17:04:19 2011
@@ -1335,6 +1335,9 @@
/// valid - Return true if the current position is valid, false for end().
bool valid() const { return path.valid(); }
+ /// atBegin - Return true if the current position is the first map entry.
+ bool atBegin() const { return path.atBegin(); }
+
/// start - Return the beginning of the current interval.
const KeyT &start() const { return unsafeStart(); }
More information about the llvm-commits
mailing list