Add operator* to store::iterator. (#4493)
This commit is contained in:
parent
ef985e3cf1
commit
89317dc542
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ public:
|
||||||
{
|
{
|
||||||
return ¤t;
|
return ¤t;
|
||||||
}
|
}
|
||||||
|
std::pair<T, U> const & operator* () const
|
||||||
|
{
|
||||||
|
return current;
|
||||||
|
}
|
||||||
bool operator== (iterator<T, U> const & other_a) const
|
bool operator== (iterator<T, U> const & other_a) const
|
||||||
{
|
{
|
||||||
return (impl == nullptr && other_a.impl == nullptr) || (impl != nullptr && *impl == other_a.impl.get ()) || (other_a.impl != nullptr && *other_a.impl == impl.get ());
|
return (impl == nullptr && other_a.impl == nullptr) || (impl != nullptr && *impl == other_a.impl.get ()) || (other_a.impl != nullptr && *other_a.impl == impl.get ());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue