iterator: add less-equal operators for libstdc++-10 compatibility
This commit is contained in:
parent
9750796e4e
commit
0d497738ce
@ -52,6 +52,13 @@ namespace cruft::iterator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
decltype(auto)
|
||||||
|
operator<= (dereference_adapter const &rhs) const
|
||||||
|
{
|
||||||
|
return m_cursor <= rhs.m_cursor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// Iterator movement operations
|
// Iterator movement operations
|
||||||
dereference_adapter&
|
dereference_adapter&
|
||||||
|
@ -60,6 +60,7 @@ namespace cruft::iterator {
|
|||||||
|
|
||||||
constexpr bool operator!= (iterator const &rhs) const noexcept { return m_value != rhs.m_value; }
|
constexpr bool operator!= (iterator const &rhs) const noexcept { return m_value != rhs.m_value; }
|
||||||
constexpr bool operator== (iterator const &rhs) const noexcept { return m_value == rhs.m_value; }
|
constexpr bool operator== (iterator const &rhs) const noexcept { return m_value == rhs.m_value; }
|
||||||
|
constexpr bool operator<= (iterator const &rhs) const noexcept { return m_value <= rhs.m_value; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ValueT m_value;
|
ValueT m_value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user