220 29598 <583F4A4F.7020708@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Add a "tuple_slice" function in <tuple>
Date: Wed, 30 Nov 2016 16:53:19 -0500
Lines: 33
Approved: news@gmane.org
Message-ID: <583F4A4F.7020708@gmail.com>
References: <490cad18-4302-4350-976f-2bc394a1a350@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1480542803 607 195.159.176.226 (30 Nov 2016 21:53:23 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 30 Nov 2016 21:53:23 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBBUMU7XAQKGQETYGH6GA@isocpp.org Wed Nov 30 22:53:19 2016
Return-path: <std-proposals+bncBC37LBFWUIFBBUMU7XAQKGQETYGH6GA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pg0-f71.google.com ([74.125.83.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBBUMU7XAQKGQETYGH6GA@isocpp.org>)
	id 1cCCoY-0007rh-BZ
	for gclcip-std-proposals@m.gmane.org; Wed, 30 Nov 2016 22:53:18 +0100
Original-Received: by mail-pg0-f71.google.com with SMTP id p66sf52337586pga.4
        for <gclcip-std-proposals@m.gmane.org>; Wed, 30 Nov 2016 13:53:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:references:from:message-id:date:user-agent:mime-version
         :in-reply-to:content-transfer-encoding:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:x-spam-checked-in-group:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe;
        bh=O9qVmr8tyXWQY/F1lfLacDF5cdxiZbmP+3MHKhx7JNU=;
        b=DY7/i3sOh5p2hXbg+O0sMKOAfZq9i9d0Ejmf53k02omJx/PbVaZUuXKKke/K7porlx
         /WMwx1QQSTbsWdlOl6OoKSTOyBV6noZacWcJ66aax0Yf5G/Jc3OZ97koZPpSLzvLyURl
         w4U3AOYDlDOg4aVjkdv7VwlP9jkwrVMpUl2y+MlfY/V7/JVjoCE6Pr6WYUHGtTWoJYpa
         giwkcG/K0GXcq20rb/XU8hNsj3uxl89s05DFg5SD9N+FFylMo9WutBTboDBCeprCDMD+
         9evBl94AjSpHl9PbtASqv61Sr68iGkSEQuFYly8IojxPwiXPSxhGL4XmeMx/NnCoqFvS
      
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-transfer-encoding
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=O9qVmr8tyXWQY/F1lfLacDF5cdxiZbmP+3MHKhx7JNU=;
        b=B5/fgmi4vYqVK7KkmjO3umnZgwwNV8LNd2/WCtU+oVXBp2zG8wVLK7zw4Y+JE/U2rO
         2EPTZeozCGaAYwM6kxNMRwxXVOSAljRlVKHYG9wwZiHkYtTaYWMa/uc90PtaF78nWzi1
         /fA6hwBNSeK59CK8ff9bCES7kpmfHAud1tW98DJ0l1RqwA0t864bJpnLmwuh3UflMJqd
         he3FAFkWx8Nwv2FAID4w1HLcq5PIXn5IB/0nCtCcWtmkZK1PjaFBBIp6ZH0+1UrknQjs
         kvJG5RVq1PY874JoXdvdlJGiRCMvyALtpr74ucvu9+g4pPepLtz+8rnxmsfC4NUK3FHm
  
X-Gm-Message-State: AKaTC01YS9AfJW7rdbFHdQWytSvc3TlRVYAhHnnHXJu8zcFgr/zVqz0QAjPJeqRL+VtM/Q==
X-Received: by 10.99.147.80 with SMTP id w16mr16044015pgm.33.1480542801794;
        Wed, 30 Nov 2016 13:53:21 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.157.39.136 with SMTP id c8ls16068088otb.9.gmail; Wed, 30 Nov
 2016 13:53:20 -0800 (PST)
X-Received: by 10.233.221.135 with SMTP id r129mr30412816qkf.56.1480542800858;
        Wed, 30 Nov 2016 13:53:20 -0800 (PST)
Original-Received: from mail-qk0-x244.google.com (mail-qk0-x244.google.com. [2607:f8b0:400d:c09::244])
        by mx.google.com with ESMTPS id a28si31283510qtc.202.2016.11.30.13.53.20
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 30 Nov 2016 13:53:20 -0800 (PST)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::244 as permitted sender) client-ip=2607:f8b0:400d:c09::244;
Original-Received: by mail-qk0-x244.google.com with SMTP id x190so23784693qkb.0
        for <std-proposals@isocpp.org>; Wed, 30 Nov 2016 13:53:20 -0800 (PST)
X-Received: by 10.55.73.75 with SMTP id w72mr29679416qka.321.1480542800513;
        Wed, 30 Nov 2016 13:53:20 -0800 (PST)
Original-Received: from [192.168.1.173] (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id m129sm34334484qkb.48.2016.11.30.13.53.19
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 30 Nov 2016 13:53:19 -0800 (PST)
In-Reply-To: <490cad18-4302-4350-976f-2bc394a1a350@isocpp.org>
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::244 as permitted
 sender) smtp.mailfrom=mwoehlke.floss@gmail.com;       dmarc=pass (p=NONE
 dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:29598
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/29598>

On 2016-11-30 16:04, =CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CE=BF=CF=82 =CE=
=91=CE=B8=CE=B1=CE=BD=CE=B1=CF=83=CE=AF=CE=BF=CF=85 wrote:
> Just floating the idea before composing the complete text. I recently *bl=
ogged=20
> <https://ngathanasiou.wordpress.com/2016/11/28/want-a-std-slice/>*about a=
=20
> hypothetical tuple slice functionality (and related design considerations=
)=20
> and it seems useful & simple enough (conceptually and implementation wise=
)=20
> to be added in isolation to the Standard library (it may just have been=
=20
> overlooked in previous versions, I couldn't find related proposals).

If we had generalized slicing, would the proposed library function offer
anything superior to `std::make_tuple([I1:I2]product_type...)`?

(Generalized slicing would work both on *any* product type, as well as
on parameter packs, so in at least that sense, it is superior to a
library function that operates only on std::tuple.)

--=20
Matthew

--=20
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp=
..org/d/msgid/std-proposals/583F4A4F.7020708%40gmail.com.

.
