C++ Logo

std-proposals

Advanced search

Re: [std-proposals] for ( repeat_count )

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 23 Oct 2023 09:14:21 -0700
On Monday, 23 October 2023 02:18:41 PDT Frederick Virchanza Gotham via Std-
Proposals wrote:
> What if the following:
>
> for ( usigned i = 0u; i < len; ++i ) *p++ = Get();
>
> Could be written as simply:
>
> for ( len ) *p++ = Get();

while (len--) *p++ = Get;

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DCAI Cloud Engineering

Received on 2023-10-23 16:14:29