From 62a6daf1da5a4bd7e1dfbe005b92dfc5cb481ab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 4 Oct 2011 11:25:45 +0000 Subject: [PATCH] add to Compact_container iterator type operators > >= and <= --- STL_Extension/include/CGAL/Compact_container.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/STL_Extension/include/CGAL/Compact_container.h b/STL_Extension/include/CGAL/Compact_container.h index 3ff34ce276a..a5a0ea2fbeb 100644 --- a/STL_Extension/include/CGAL/Compact_container.h +++ b/STL_Extension/include/CGAL/Compact_container.h @@ -864,6 +864,21 @@ namespace internal { return (m_ptr.p < other.m_ptr.p); } + bool operator>(const CC_iterator& other) const + { + return (m_ptr.p > other.m_ptr.p); + } + + bool operator<=(const CC_iterator& other) const + { + return (m_ptr.p <= other.m_ptr.p); + } + + bool operator>=(const CC_iterator& other) const + { + return (m_ptr.p >= other.m_ptr.p); + } + // Can itself be used for bit-squatting. void * for_compact_container() const { return (m_ptr.vp); } void * & for_compact_container() { return (m_ptr.vp); }