220 24343 <CA+wfc1-NGb8G1ocpbuzC42aLhAF3KOggRev9rzBNXbL8wd5V6A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Oliver Kowalke <oliver.kowalke@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: [tuple] extracting tuples out of a tuple
Date: Sat, 13 Feb 2016 09:44:57 +0100
Lines: 99
Approved: news@gmane.org
Message-ID: <CA+wfc1-NGb8G1ocpbuzC42aLhAF3KOggRev9rzBNXbL8wd5V6A@mail.gmail.com>
References: <CA+wfc1-FFqOJ9OSme_SpJAmGz+cshbMDVi_dLrF1ztbzkTN-WQ@mail.gmail.com>
 <n9ksdc$4so$1@ger.gmane.org> <CA+wfc18LVMDXhRYhkw0PxeOmPiOoqVteF7V+40EdOOYb2K1snA@mail.gmail.com>
 <n9l3ns$33l$1@ger.gmane.org> <7e08b6c5-853c-471e-b248-a9df7e8e27be@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e013a089692b6ea052ba2cd89
X-Trace: ger.gmane.org 1455353125 22289 80.91.229.3 (13 Feb 2016 08:45:25 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 13 Feb 2016 08:45:25 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCLZHP5J7MHRBHO27O2QKGQE4WYPAVA@isocpp.org Sat Feb 13 09:45:24 2016
Return-path: <std-proposals+bncBCLZHP5J7MHRBHO27O2QKGQE4WYPAVA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qk0-f197.google.com ([209.85.220.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCLZHP5J7MHRBHO27O2QKGQE4WYPAVA@isocpp.org>)
	id 1aUVpT-0002G0-Kh
	for gclcip-std-proposals@m.gmane.org; Sat, 13 Feb 2016 09:45:23 +0100
Original-Received: by mail-qk0-f197.google.com with SMTP id x1sf157887184qkc.1
        for <gclcip-std-proposals@m.gmane.org>; Sat, 13 Feb 2016 00:45:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type: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=T6M64Z3I4DwALMRqkHfbtQ4bnB3N8CbtKXgX9pGkZes=;
        b=gn3o+EVclMmGhbkEkjGgKGjN9UftUhaYlK+0uqVN6u1aCk72+ubsUs6vJoQLMUruYh
         WAAak1RPHFi/fNuZ4mjFplgMEyAP0fJHJrgrOPJ+AxuJHrWjUKdelhTd1OsJXAFYh5+O
         7/V+jz2m2hEHZfEzDq+NcuiGCMDYMFcmoj15g+WRjRtw7HQ0VwihMh3Mysw1I1PpxWAq
         BsdRK/o+6fPKi7gMV3RNpUan3Ca8a6egESjsVPUHlCazUSTB6KCSbbIhX21zQYOSr6Or
         rSBGS0HtQInIaDe75k7Iu55dGA2jWSqtwNGfd2Xsx3886EFuX74ADJ0Onk+OWpBefXY7
         XZCw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:content-type: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=T6M64Z3I4DwALMRqkHfbtQ4bnB3N8CbtKXgX9pGkZes=;
        b=IThtDDVzahVfgXLUgpOy0pDX0r3ohFFAgJN5n1ajSSAh7ExxdpQGlC/KKnBlpO5eKa
         z0HFx+weHmseIqbxNC6MHhGL+GWtGkaCKZwpFmyF9V4hPrHO6fS/uQq4W7hljVjPbesr
         2J1nyZFec9UCxSISLGdXPIKyeaNtXRKKlLbFn78BQFPP5zdy/MFrWNTxwv7gg/zBeSXm
         f1RvsPZhZvo2d+dn+CaLja6U9ibYQ9vunabTe2l36XG8ksuFRy85zcAJ0PzAkVkf8Qum
         a+avAdjltKFj2lAf5vaN7vL7vHAPDEkBoN06sSU+X1I9PynLD3ASrGPX0EKvD3ywq6BA
         axEg==
X-Gm-Message-State: AG10YOQ/DjbGvKCDrv+E8p8kJOgcwoA967yhwkrreklRBkaLWxyBp3Ago9iGczaWZiWOMA==
X-Received: by 10.13.226.84 with SMTP id l81mr5608828ywe.16.1455353122672;
        Sat, 13 Feb 2016 00:45:22 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.236.2 with SMTP id uq2ls1049876obc.11.gmail; Sat, 13 Feb
 2016 00:45:17 -0800 (PST)
X-Received: by 10.182.48.130 with SMTP id l2mr5075031obn.49.1455353117364;
        Sat, 13 Feb 2016 00:45:17 -0800 (PST)
Original-Received: from mail-ob0-x229.google.com (mail-ob0-x229.google.com. [2607:f8b0:4003:c01::229])
        by mx.google.com with ESMTPS id i2si1313773obz.47.2016.02.13.00.45.17
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 13 Feb 2016 00:45:17 -0800 (PST)
Received-SPF: pass (google.com: domain of oliver.kowalke@gmail.com designates 2607:f8b0:4003:c01::229 as permitted sender) client-ip=2607:f8b0:4003:c01::229;
Original-Received: by mail-ob0-x229.google.com with SMTP id wb13so153862758obb.1
        for <std-proposals@isocpp.org>; Sat, 13 Feb 2016 00:45:17 -0800 (PST)
X-Received: by 10.182.27.98 with SMTP id s2mr4777355obg.50.1455353117192; Sat,
 13 Feb 2016 00:45:17 -0800 (PST)
Original-Received: by 10.76.90.170 with HTTP; Sat, 13 Feb 2016 00:44:57 -0800 (PST)
In-Reply-To: <7e08b6c5-853c-471e-b248-a9df7e8e27be@isocpp.org>
X-Original-Sender: oliver.kowalke@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of oliver.kowalke@gmail.com designates 2607:f8b0:4003:c01::229 as
 permitted sender) smtp.mailfrom=oliver.kowalke@gmail.com;       dkim=pass
 header.i=@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-Spam-Checked-In-Group: 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:24343
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/24343>

--089e013a089692b6ea052ba2cd89
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

016-02-13 1:28 GMT+01:00 Arthur O'Dwyer <arthur.j.odwyer@gmail.com>:

> (Also, I'm assuming that Oliver made some typos in his original post =E2=
=80=94
> notice I've flipped the "tpl" and "tpl1" in the second line above.)
>

correct


> Also, of course, head(x) should logically return get<0>(x), not some weir=
d
> synonym for reverse(tail(reverse(x))).
>

head(x) should return the part from the source tuple's head that fits into
tuple x, same applies to tail(x)


> But that's just poor naming. The underlying operation here is either
> "splice"
>

I'm only interested in the functionality, not in the naming. One of my
project requires such functionality and I was wondering that neither the
standard
provides such manipulators nor could I find a proposal.

tuple ~... and tuple [:] require a language modification - but I need a
solution now; so I've written head()/tail() (even if the naming is not
perfect).

--=20

---=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.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-propos=
als/.

--089e013a089692b6ea052ba2cd89
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">016-=
02-13 1:28 GMT+01:00 Arthur O&#39;Dwyer <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:arthur.j.odwyer@gmail.com" target=3D"_blank">arthur.j.odwyer@gmail.com=
</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div =
dir=3D"ltr"><span class=3D""></span> (Also, I&#39;m assuming that Oliver ma=
de some typos in his original post =E2=80=94 notice I&#39;ve flipped the &q=
uot;tpl&quot; and &quot;tpl1&quot; in the second line above.)</div></blockq=
uote><div><br></div><div>correct<br></div><div>=C2=A0</div><blockquote clas=
s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r=
gb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div></div><div>Also, of=
 course, head(x) should logically return get&lt;0&gt;(x), not some weird sy=
nonym for reverse(tail(reverse(x))). </div></div></blockquote><div><br></di=
v><div>head(x) should return the part from the source tuple&#39;s head that=
 fits into tuple x, same applies to tail(x)<br></div><div>=C2=A0</div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>But that=
&#39;s just poor naming. The underlying operation here is either &quot;spli=
ce&quot;<br></div></div></blockquote></div><br></div><div class=3D"gmail_ex=
tra">I&#39;m only interested in the functionality, not in the naming. One o=
f my project requires such functionality and I was wondering that neither t=
he standard<br></div><div class=3D"gmail_extra">provides such manipulators =
nor could I find a proposal.<br><span style=3D"font-family:arial,helvetica,=
sans-serif"><br></span></div><div class=3D"gmail_extra"><span style=3D"font=
-family:arial,helvetica,sans-serif">tuple ~... and tu</span><code><span sty=
le=3D"font-family:arial,helvetica,sans-serif">ple [:] require a language mo=
dification - but I need a solution now; so I&#39;ve written head()/tail() (=
even if the naming is not perfect).</span><span style=3D"color:rgb(136,0,0)=
"></span></code></div></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"https://groups.google.com/a/isocpp.org/group=
/std-proposals/">https://groups.google.com/a/isocpp.org/group/std-proposals=
/</a>.<br />

--089e013a089692b6ea052ba2cd89--

.
