C++ Logo

std-discussion

Advanced search

Re: generic c++ for loop

From: Phil Bouchard <boost_at_[hidden]>
Date: Wed, 27 Nov 2024 20:35:19 -0500
On 11/25/24 15:16, Ville Voutilainen via Std-Discussion wrote:
> On Mon, 25 Nov 2024 at 22:13, Smith, Jim via Std-Discussion
> <std-discussion_at_[hidden]> wrote:
>>
>> Hi All,
>>
>> Is there already a proposal for making the C++ for loop generic, for example able to print a function parameter pack?
>>
>> This would require a kind of template version of the C++ for loop, i.e., an implementation would be generated for each type it may encounter during execution.
>
> See wg21.link/p1306

The aforementioned paper is just a carbon copy of Python again.

But for function parameter pack it would be quite powerful as we could
edit function parameter packs at compile time.

For some reason I see great usefulness for that.


-- 
Fornux Logo <https://www.fornux.com/>  
*Phil Bouchard*  LinkedIn Icon
<https://www.linkedin.com/in/phil-bouchard-5723a910/> 
Founder & CEO
T: (819) 328-4743
E: phil_at_[hidden]| www.fornux.com <http://www.fornux.com>
320-345 de la Gauchetière Ouest| Montréal (Qc), H2Z 0A2 Canada
The Best Predictable C++ Memory Manager
<https://static.fornux.com/c-superset/> Le message ci-dessus, ainsi que
les documents l'accompagnant, sont destinés uniquement aux personnes
identifiées et peuvent contenir des informations privilégiées,
confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce
message par erreur, veuillez le détruire.
This communication (and/or the attachments) is intended for named
recipients only and may contain privileged or confidential information
which is not to be disclosed. If you received this communication by
mistake please destroy all copies.

Received on 2024-11-28 01:35:21