]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
hobject: add helper typedefs
authorSamuel Just <sjust@redhat.com>
Tue, 4 Oct 2016 20:25:55 +0000 (13:25 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 17 Nov 2016 18:40:16 +0000 (10:40 -0800)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/common/hobject.h

index 280a43018229c93a6b10498fc839c6c6bd1a0474..8e8c83d49c3181369f39bb893a206b65d202273e 100644 (file)
@@ -327,6 +327,10 @@ public:
        return cmp_nibblewise(l, r) < 0;
     }
   };
+  template <typename T>
+  using bitwisemap = std::map<hobject_t, T, BitwiseComparator>;
+
+  using bitwiseset = std::set<hobject_t, BitwiseComparator>;
 };
 WRITE_CLASS_ENCODER(hobject_t)