string: add indirection operator for tokeniser::iterator

This commit is contained in:
Danny Robson 2018-04-01 14:44:43 +10:00
parent bfa5700df0
commit 5028de600a

View File

@ -83,6 +83,11 @@ namespace util {
return m_range; return m_range;
} }
const range_type* operator-> (void) const
{
return &m_range;
}
bool operator== (const iterator &rhs) const bool operator== (const iterator &rhs) const
{ {
return m_range == rhs.m_range && m_separator == rhs.m_separator; return m_range == rhs.m_range && m_separator == rhs.m_separator;