C++ Logo

std-discussion

Advanced search

Re: generic c++ for loop

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Mon, 25 Nov 2024 22:16:06 +0200
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

Received on 2024-11-25 20:16:20