[MOAB-dev] r2861 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Apr 30 16:01:59 CDT 2009


Author: kraftche
Date: 2009-04-30 16:01:58 -0500 (Thu, 30 Apr 2009)
New Revision: 2861

Modified:
   MOAB/trunk/RangeMap.hpp
Log:
add empty() method

Modified: MOAB/trunk/RangeMap.hpp
===================================================================
--- MOAB/trunk/RangeMap.hpp	2009-04-30 21:00:56 UTC (rev 2860)
+++ MOAB/trunk/RangeMap.hpp	2009-04-30 21:01:58 UTC (rev 2861)
@@ -43,7 +43,11 @@
   };
   typedef typename std::vector<Range> RangeList;
   typedef typename RangeList::const_iterator iterator;
+  typedef typename RangeList::const_iterator const_iterator;
   
+  inline bool empty() const
+    { return data.empty(); }
+  
   /**\brief Insert mapping between range of keys and range of values
    * 
    * Insert mapping from [first_key, first_key+count) to [first_val, first_val+count) 



More information about the moab-dev mailing list