Added new sub_match operators.

Made member operators const.


[SVN r20442]
This commit is contained in:
John Maddock
2003-10-21 11:14:13 +00:00
parent 63778bea05
commit 72a7a13565
5 changed files with 130 additions and 49 deletions

View File

@ -107,17 +107,17 @@ public:
pdata = that.pdata;
return *this;
}
bool operator==(const regex_iterator& that)
bool operator==(const regex_iterator& that)const
{
if((pdata.get() == 0) || (that.pdata.get() == 0))
return pdata.get() == that.pdata.get();
return pdata->compare(*(that.pdata.get()));
}
bool operator!=(const regex_iterator& that)
bool operator!=(const regex_iterator& that)const
{ return !(*this == that); }
const value_type& operator*()
const value_type& operator*()const
{ return pdata->get(); }
const value_type* operator->()
const value_type* operator->()const
{ return &(pdata->get()); }
regex_iterator& operator++()
{