From: Jakob Stoklund Olesen Date: Fri, 19 Aug 2011 22:04:19 +0000 (+0000) Subject: Add IntervalMap::const_iterator::atBegin(). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cafe614035c8db70eb5da96dba00696db381674f;p=oota-llvm.git Add IntervalMap::const_iterator::atBegin(). It returns true when operator--() can be called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138107 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/IntervalMap.h b/include/llvm/ADT/IntervalMap.h index f28ebf3b9a5..1230e8f5fb4 100644 --- a/include/llvm/ADT/IntervalMap.h +++ b/include/llvm/ADT/IntervalMap.h @@ -1335,6 +1335,9 @@ public: /// 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(); }