220 6458 <CAPBZbvyYKe2G_xO2XtYeQqHfhJAO7+atHVE1e49UcQXyDBQU3w@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "Billy O'Neal" <billy.oneal@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: std::sink<T> to efficiently pass `sink` arguments
Date: Sat, 14 Sep 2013 21:53:51 -0700
Lines: 96
Approved: news@gmane.org
Message-ID: <CAPBZbvyYKe2G_xO2XtYeQqHfhJAO7+atHVE1e49UcQXyDBQU3w@mail.gmail.com>
References: <c8da1b8c-becf-421e-b2c1-8cc561afb579@isocpp.org>
 <1fbc270b-5fc9-4ff0-9373-fc12a689b949@isocpp.org> <CAGNvRgBG7QNNw7ndNG3EBEXw2LbxmZ4aRvQ6XNxrPM32oREmwQ@mail.gmail.com>
 <DUB106-W25DE928FA1386F5264DAE18C3A0@phx.gbl> <f2e0cf71-8014-4c4b-a152-92c010c8f15f@isocpp.org>
 <47dcd9ae-aa01-4de4-8980-72bd9ce924fc@isocpp.org> <CAPBZbvxVbTXAXfCEtpt4ix0ENRY90-niQU7JGN5L4wHUqjyZ0A@mail.gmail.com>
 <a154aa18-d349-4666-9b15-8ce9c42f700d@isocpp.org> <CAPBZbvwdtO3bU4sQ5HcK60kFnuvTW3NwqoaVvqyJU3kEZ2bBmg@mail.gmail.com>
 <dfbb57fa-d339-4387-8de3-737a9d876c00@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=001a11c2d6a021b8b004e664e21f
X-Trace: ger.gmane.org 1379220869 14239 80.91.229.3 (15 Sep 2013 04:54:29 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sun, 15 Sep 2013 04:54:29 +0000 (UTC)
To: std-proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDKLBLVE6ADBBCH32SIQKGQEV25JO6Q@isocpp.org Sun Sep 15 06:54:34 2013
Return-path: <std-proposals+bncBDKLBLVE6ADBBCH32SIQKGQEV25JO6Q@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f197.google.com ([209.85.214.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDKLBLVE6ADBBCH32SIQKGQEV25JO6Q@isocpp.org>)
	id 1VL4Lx-0005QV-Mo
	for gclcip-std-proposals@m.gmane.org; Sun, 15 Sep 2013 06:54:34 +0200
Original-Received: by mail-ob0-f197.google.com with SMTP id wm4sf10424459obc.4
        for <gclcip-std-proposals@m.gmane.org>; Sat, 14 Sep 2013 21:54:32 -0700 (PDT)
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:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe:content-type;
        bh=xrOw6FX0IzS0hdIVxlfwRU3zpWkaU4B9KjmNbpOdkRU=;
        b=mBJi48IxgG8Ukt6d0zunR6YItcR4oFfyIKcluIitWTU7cFG9SvJyubRlMe7gZGwEuk
         TVe/n0s+gi6Aq5TeekBBq2vxHdSsd9V/CbSZuMKpIcawDokAvTG4jzFFRKB0jgOEXSIy
         oz+rukTUUaAXp353i+dPNoND8qppWVCRU5ZFLOJGUHJs7ur8vUYCwHnWvPG+dMRteuL9
         mj1fAWD8ltBqbAc8JvHgMWCjfKfNp+UGMzvo6SGk5m5a9tFqLEWniJ4/BZayUxWMy6Ti
         w8vIvNa7XGUFVLCZ6KtkIktFPd2r+U0MRioGtcBHRuupdUC+z/lea83AGjs8Jh2qlTZc
         c3+A==
X-Gm-Message-State: ALoCoQli6eGbANRJkCmWsk0jmsneYRECKE4pbvcJS2v9ED1B0orsWFt2OUxE8xBexz32JV6v/ATT
X-Received: by 10.182.16.199 with SMTP id i7mr255219obd.42.1379220872476;
        Sat, 14 Sep 2013 21:54:32 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.182.16.226 with SMTP id j2ls597632obd.24.gmail; Sat, 14 Sep
 2013 21:54:31 -0700 (PDT)
X-Received: by 10.60.43.131 with SMTP id w3mr20256523oel.10.1379220871951;
        Sat, 14 Sep 2013 21:54:31 -0700 (PDT)
Original-Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com [2607:f8b0:4003:c01::230])
        by mx.google.com with ESMTPS id g7si11713371oez.51.1969.12.31.16.00.00
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 14 Sep 2013 21:54:31 -0700 (PDT)
Received-SPF: pass (google.com: domain of billy.oneal@gmail.com designates 2607:f8b0:4003:c01::230 as permitted sender) client-ip=2607:f8b0:4003:c01::230;
Original-Received: by mail-ob0-f176.google.com with SMTP id uy5so2463030obc.7
        for <std-proposals@isocpp.org>; Sat, 14 Sep 2013 21:54:31 -0700 (PDT)
X-Received: by 10.182.18.9 with SMTP id s9mr20451914obd.15.1379220871819; Sat,
 14 Sep 2013 21:54:31 -0700 (PDT)
Original-Received: by 10.182.33.234 with HTTP; Sat, 14 Sep 2013 21:53:51 -0700 (PDT)
In-Reply-To: <dfbb57fa-d339-4387-8de3-737a9d876c00@isocpp.org>
X-Original-Sender: billy.oneal@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of billy.oneal@gmail.com designates 2607:f8b0:4003:c01::230 as
 permitted sender) smtp.mail=billy.oneal@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-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:6458
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6458>

--001a11c2d6a021b8b004e664e21f
Content-Type: text/plain; charset=ISO-8859-1

How is 3 different than 4? They both result in a value copy in all cases.

Billy O'Neal
https://github.com/BillyONeal/ <https://bitbucket.org/BillyONeal/>
http://stackoverflow.com/users/82320/billy-oneal
Malware Response Instructor - BleepingComputer.com


On Sat, Sep 14, 2013 at 9:43 PM, Sumant Tambe <sutambe@gmail.com> wrote:

> I mean to say there are 3 options and in<T> might be the 4th.
> 1. Using universal refs (forces template)
> 2. Using rvalue refs and const lvalue refs conbination (causes exponential
> number of function versions)
> 3. Pass by value (good only with sink args)
> 4. Pass as std::in<T>
>
> --
>
> ---
> 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
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

-- 

--- 
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 email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--001a11c2d6a021b8b004e664e21f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">How is 3 different than 4? They both result in a value cop=
y in all cases.</div><div class=3D"gmail_extra"><br clear=3D"all"><div><div=
 dir=3D"ltr"><div>Billy O&#39;Neal</div><div><a href=3D"https://bitbucket.o=
rg/BillyONeal/" target=3D"_blank">https://github.com/BillyONeal/</a></div>

<div><a href=3D"http://stackoverflow.com/users/82320/billy-oneal" target=3D=
"_blank">http://stackoverflow.com/users/82320/billy-oneal</a></div><div>Mal=
ware Response Instructor - BleepingComputer.com</div></div></div>
<br><br><div class=3D"gmail_quote">On Sat, Sep 14, 2013 at 9:43 PM, Sumant =
Tambe <span dir=3D"ltr">&lt;<a href=3D"mailto:sutambe@gmail.com" target=3D"=
_blank">sutambe@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gma=
il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef=
t:1ex">

I mean to say there are 3 options and in&lt;T&gt; might be the 4th.<br>
1. Using universal refs (forces template)<br>
2. Using rvalue refs and const lvalue refs conbination (causes exponential =
number of function versions)<br>
3. Pass by value (good only with sink args)<br>
4. Pass as std::in&lt;T&gt;<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
--<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%2Bunsubscribe@isocpp.org">std-propo=
sals+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"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--001a11c2d6a021b8b004e664e21f--

.
