C++ Logo

std-proposals

Advanced search

Re: [std-proposals] The end iterator for a contiguous container

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Sat, 24 May 2025 14:51:24 -0400
On Sat, May 24, 2025 at 2:38 PM Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:
>
>
>
> On Saturday, May 24, 2025, Jonathan Wakely wrote:
>>>
>>>
>>>
>>
>> It already exists, std::to_address
>>
>> Using &*it is wrong.
>
>
>
>
> Thanks. Neither ChatGPT nor CoPilot could point me to that. I'm still working on my program that runs an AI offline on all the 6000 papers as well as the Standard, so hopefully in the future, I'll be able to figure stuff like this out before posting here.

Meanwhile, over in the world of "tools that actually work," the second
hit for "C++ contiguous iterator to pointer" on Duck-Duck-Go is the
cppreference page for `contiguous_iterator`, which repeatedly talks
about `std::to_address`.

Maybe you should stop treating LLMs as though they're Deep Thought.

Received on 2025-05-24 18:51:37