summaryrefslogtreecommitdiff
path: root/qpid/cpp/include/qpid/RangeSet.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-11-04 20:27:13 +0000
committerAlan Conway <aconway@apache.org>2011-11-04 20:27:13 +0000
commit29e3b04915ef30f7e0f769cc1ee3994d99711fef (patch)
tree02e49caec0e4e7699413d36eab177a3d5bbb732d /qpid/cpp/include/qpid/RangeSet.h
parent561fe4dd6234c085dc55bbd430dcab7427d2db29 (diff)
downloadqpid-python-qpid-2920-active.tar.gz
QPID-2920: Batch acquire/dequeue messages in cluster.qpid-2920-active
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-2920-active@1197749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include/qpid/RangeSet.h')
-rw-r--r--qpid/cpp/include/qpid/RangeSet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/RangeSet.h b/qpid/cpp/include/qpid/RangeSet.h
index 36991fd784..b36030cbcd 100644
--- a/qpid/cpp/include/qpid/RangeSet.h
+++ b/qpid/cpp/include/qpid/RangeSet.h
@@ -133,6 +133,8 @@ class RangeSet
explicit RangeSet(const Range<T>& r) { *this += r; }
RangeSet(const T& a, const T& b) { *this += Range<T>(a,b); }
+ void swap(RangeSet& x) { ranges.swap(x.ranges); }
+
bool contiguous() const { return ranges.size() <= 1; }
bool contains(const T& t) const;