[PATCH] D15421: [Feature] Add a builtin for indexing into parameter packs

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 14:52:47 PST 2016


On Wed, Jan 13, 2016 at 2:31 PM, Nathan Wilson <nwilson20 at gmail.com> wrote:

> nwilson added a comment.
>
> In http://reviews.llvm.org/D15421#326144, @rsmith wrote:
>
> > Bikeshedding on the name a bit... how about `__type_pack_element`?
>
> Hmm, I kind of felt like having `nth` in there implied we're indexing into
> something... What about `__nth_pack_element`?


Conversely, std::nth_element doesn't do indexing, and std::tuple_element
does.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160113/85b712a1/attachment.html>


More information about the cfe-commits mailing list