C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Chaining of the -> operator for std::optional< std::list<T>::iterator >

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Thu, 25 May 2023 11:19:22 +0100
On Thu, May 25, 2023 at 11:11 AM Frederick Virchanza Gotham
<cauldwell.thomas_at_[hidden]> wrote:

> But at the same time would still allow us to access members of the
> iterator itself by using the '.' operator:
> (*(monkey.operator->()))->Speak();

I meant to write:

    (*(monkey.operator->())).some_member_belonging_to_the_iterator

Received on 2023-05-25 10:19:33