]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/interval_set: use interval_set when appropriate
authorKefu Chai <kchai@redhat.com>
Tue, 24 Dec 2019 07:36:18 +0000 (15:36 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Dec 2019 16:25:39 +0000 (00:25 +0800)
it's an alias of `interval_set<T,Map>` under some circumstances

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/interval_set.h

index 92d90cb5aa0981499f600897cd429c4d9d1cb354..f2f79f7c07af4f011677db853f925197632a73a8 100644 (file)
@@ -99,11 +99,11 @@ class interval_set {
           return prev;
         }
 
-    friend class interval_set<T,Map>::const_iterator;
+    friend class interval_set::const_iterator;
 
     protected:
         typename Map::iterator _iter;
-    friend class interval_set<T,Map>;
+    friend class interval_set;
   };
 
   class const_iterator : public std::iterator <std::forward_iterator_tag, T>
@@ -502,7 +502,7 @@ class interval_set {
     }
   }
 
-  void swap(interval_set<T,Map>& other) {
+  void swap(interval_set& other) {
     m.swap(other.m);
     std::swap(_size, other._size);
   }