C++ Logo


Advanced search

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

From: Jason McKesson <jmckesson_at_[hidden]>
Date: Tue, 30 Aug 2022 11:32:52 -0400
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.

Received on 2022-08-30 15:33:31