Sujet : Re: size_t best practice
De : andreytarasevich (at) *nospam* hotmail.com (Andrey Tarasevich)
Groupes : comp.lang.cDate : 20. Aug 2024, 14:55:40
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va278t$3d70r$1@dont-email.me>
References : 1 2
User-Agent : Mozilla Thunderbird
On 08/20/24 6:53 AM, Andrey Tarasevich wrote:
For example, iteration all the way to 0 can be idiomatically implemented as
for (some_unsigned_type i = size; (some_unsigned_type) i != -1; --i)
...
Sorry, a typo. Was meant to be
for (some_unsigned_type i = size; i != (some_unsigned_type) -1; --i)
...
-- Best regards,Andrey