C++ Logo


Advanced search

Re: [std-proposals] Redundant std::begin() and std::end() overloads for std::initializer_list

From: Andrey Semashev <andrey.semashev_at_[hidden]>
Date: Tue, 30 Aug 2022 19:18:19 +0300
On 8/30/22 18:32, Jason McKesson via Std-Proposals wrote:
> On Tue, Aug 30, 2022 at 10:16 AM Nikl Kelbon via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
>> it may be a part of expression
> An expression that does... what, exactly? Iterators don't know how big
> the range is. So how exactly could the rest of the expression
> meaningfully use the begin iterator? You'd need to extract an iterator
> pair to be able to actually use them.

The initializer list may end with a terminator value.

Received on 2022-08-30 16:18:23