add to Compact_container iterator type operators > >= and <=

This commit is contained in:
Sébastien Loriot 2011-10-04 11:25:45 +00:00
parent 968f8b40bc
commit 62a6daf1da
1 changed files with 15 additions and 0 deletions

View File

@ -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); }