220 35185 <20171031150140.5156944.20370.38945@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Tony V E <tvaneerd@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Add .emplace() method to std::unique_ptr and
 std::shared_ptr like it is in std::optional.
Date: Tue, 31 Oct 2017 11:01:40 -0400
Lines: 80
Approved: news@gmane.org
Message-ID: <20171031150140.5156944.20370.38945@gmail.com>
References: <58eb77f6-2c2d-4ec1-85f8-08dcfe25a23e@isocpp.org>
 <a30180ed-684d-440d-af4a-ad8aa2e6b3a4@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: blaine.gmane.org 1509462254 14343 195.159.176.226 (31 Oct 2017 15:04:14 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Tue, 31 Oct 2017 15:04:14 +0000 (UTC)
Cc: antanubis@gmail.com
To: =?utf-8?q?=27Thomas_K=C3=B6ppe=27_via_ISO_C++_Standard_-_Future_Proposals?= <std-proposals@isocpp.org>, ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCUZ5QWKNQINPIHCZ4CRUBA6JIVQ4@isocpp.org Tue Oct 31 16:04:05 2017
Return-path: <std-proposals+bncBCUZ5QWKNQINPIHCZ4CRUBA6JIVQ4@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-io0-f199.google.com ([209.85.223.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCUZ5QWKNQINPIHCZ4CRUBA6JIVQ4@isocpp.org>)
	id 1e9Y51-0001eN-Ka
	for gclcip-std-proposals@m.gmane.org; Tue, 31 Oct 2017 16:03:51 +0100
Original-Received: by mail-io0-f199.google.com with SMTP id 189sf43533908iow.8
        for <gclcip-std-proposals@m.gmane.org>; Tue, 31 Oct 2017 08:03:59 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1509462238; cv=pass;
        d=google.com; s=arc-20160816;
        b=fUc0ioU9FfJu1hY/ybYzKTj+X0zFzAbZPpZsgw39f09fJaIAusg3STcBtSKCi70Nw5
         E0t5mlFIB+HMJpS82FXVM0RoH9RfQYqLk4LZrv0MmwepvQddM86gu/tVv22v2lhSOHms
         ErYeV3SIl5ue8zos0BaqWYW2LFnr9l6zRwwuG6uvS0Fr8H8sgw9/IIC1dLqyiE/taylK
         qyEluWKUTUqnbzS1bIicoZuwoFGH0rQXRLTnnUs/LxbrIqHHqq3LJHSwOu5lUhWoSCFD
         9CkfL/zeFh0F/T6qZkL494pspemCd7vKHBSTHiBbW/LiBmC8wxqERVK27a/NUrQZB4EK
         DquA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:cc:to:references
         :in-reply-to:from:subject:date:message-id:content-transfer-encoding
         :mime-version:arc-authentication-results:arc-message-signature
         :dkim-signature:arc-authentication-results;
        bh=FDGKmPoZ5holybELmiC3+VQrGQbJqpGoPHldtlFyyvU=;
        b=yRmF4+hZKuW4JxlHaI7N36FZBn6svL/7cq4X14Cy+posRmKR1mbm4J83Zufc6mO1Nf
         qZ8XtZK9tOZZsCRNa3X3kVmQNmEQhrGjX7W43MtOUF43Ier59yijdF37FWgDV8L++Lin
         fvbe/DrZj2hVMNgCXPXZg295xMxmu/uEWyY+PoDFHAZBxuau4NUj8Y4PyhcFR3M6tPU0
         gbrHtaCdMelPXp5XCjdkV6JCorX66aJd6nxCj/1uVhuGiV/Bi2B8AwazjxJQT8JAdIFJ
         /PsDM0GVzN6U7Me/7PAI6IxPXXbv70dXArgkUBB/wRjZScO+Yf/3fbGjnb4gAGuy0an1
         WCJA==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=LxvgwNwe;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=mime-version:content-transfer-encoding:message-id:date:subject:from
         :in-reply-to:references:to:cc:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=FDGKmPoZ5holybELmiC3+VQrGQbJqpGoPHldtlFyyvU=;
        b=KGTAV/eZOM0e1yQcdaomRQA0NPLi0OVUbirTCW9UnJ8covEAP6KAYMuHsfdOb+4WML
         wyVUHCaZfhrngewiNV5NR3GHh6UAZyNaZqcz3MYKcebH78+8k6ztfXAOZsBOK+Ej1bGK
         ZVnfkPuSSMa8Qi6QBtTcNsYga1BH/BHxBQIMRK3V98IZdRlFdpwujZEZAbiZCEOC9g1n
         KVYHYtGFlR4lAifAy81xBRKkPju1ua4ZNsWpDf809hKnKQK5cmAiDXGvCxmzX6ISKzWn
         x1DM+hhixE2KyRLdYq4VKcUN9Z7YjqBSvUaXCFwQIpCZvA2peKRzUQIaxtq5q1DBptjS
         HhsQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:content-transfer-encoding
         :message-id:date:subject:from:in-reply-to:references:to:cc
         :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=FDGKmPoZ5holybELmiC3+VQrGQbJqpGoPHldtlFyyvU=;
        b=ePOl+maEBk5BZLBRsrarWuBvTz3Vc/JA0uq1DALdQkdGyAhvyd6g3MUiJ93Y0Y9dwv
         X9lfWNPgLVF24H42tZrKFfrcgYRm6CryFCnh9B1Jt/TFtp+z3epfwGG1ds8wSjlprz1u
         x5/HET0yqeNV2+m2tTJho6gBgLlhY69pL7oI9k6IYLI1VRQYdln5/G1A9TNN17Rlz/VO
         Dd0A8CkXivaYW07foHwl9YAAh1jxvQWe9dOZBxvtOI10cDSG1OAC0EFYpJO+VkDDQC1j
         DffwE/RNCvaIXX9gjxDKNwXGaHwK7AAbXbIWoqrEEr13pW10t28IXrpnzwIAUGAmnzVL
          
X-Gm-Message-State: AMCzsaU0w4huAMo6w6WQxNqOLO4Yam4gXqTbzY9sieLqszBX5O9MxjIM
	yWzsc5+YU6hv5lx6r3VO3TbzJA==
X-Google-Smtp-Source: ABhQp+SDNAE7Y8dRNs80Ialq/i++PJ0a8dFkve6IZ3NBGi9GnTUOiqP0U8CrgV1tFSDK39MnW00bfA==
X-Received: by 10.36.179.77 with SMTP id z13mr1914236iti.32.1509462238854;
        Tue, 31 Oct 2017 08:03:58 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.11.16 with SMTP id v16ls2367875ioi.15.gmail; Tue, 31 Oct
 2017 08:01:42 -0700 (PDT)
X-Received: by 10.107.8.207 with SMTP id h76mr2708501ioi.270.1509462102157;
        Tue, 31 Oct 2017 08:01:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1509462102; cv=none;
        d=google.com; s=arc-20160816;
        b=bm4TxqLOZlN6JSrfTnu6X7XIhKY0O6qRU4U3HSjFtfBgAkr6XL9pE0dUbEJ3bMXsEO
         CT/tGB4yDIZe8pxbGmER4gqWQCfc1B+j4Oq2ZfkSpEVefjB2OK5+DtG4hA8hVIXb0ZGC
         pYOCzlL8eQvNvVlKXyXRYL/krKg/HLBoc905nXD46Ces/uMNKOhcr+hQHwqhWwYjVBuL
         8oKhPvBHXbVcfaeFdookm79857nmwOA4obVzuA/K00w8OACZfYciTQd6Wxf9CTO2HEls
         c20Kq0o5R5PPY1BvVFnWE6qcWohyeTk3mvbx3PmDDPfjhuuhRoxRsP8NVK1inASJSipJ
         X1oQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=cc:to:references:in-reply-to:from:subject:date:message-id
         :content-transfer-encoding:mime-version:dkim-signature
         :arc-authentication-results;
        bh=nUwBeW7dWXj8Lbjm8FgEEZrEgHTb67Tp/XvBU1HvGmw=;
        b=oNw8W2HKbe18Oojc0a4ox4fyzUxAi/cPW3yAMGjy5NgIDcXxes/SwdRtg1dHE6lOFq
         ushi217GTRtV+rLbIW7c2A8m3Bxpx4+JW1cFXbvPCjb4irv8YGnEeswMoJUQ52wDIsIa
         8YZ7NL3pm6fifO/6Xp+ArGRtzg+t4azsbK19igUQxIUUR9YdX13NhOJ9ujg8KQaG/sBx
         QItz31SeuoBLadI1vtsM7B2AO4zb8tSb08Oscw6DmULtTzlbPazdPlRBAfO6cs0eJ8xT
         Dn0SiXW2GM8HUJuUpl/e6PmORkTo6JdYfph34pJBO0Z4Fbyj58RnCDM919F7fR9sqvcr
         //Ww==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=LxvgwNwe;
       spf=pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=tvaneerd@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41])
        by mx.google.com with SMTPS id d2sor772962ioc.355.2017.10.31.08.01.42
        for <std-proposals@isocpp.org>
        (Google Transport Security);
        Tue, 31 Oct 2017 08:01:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Received: by 10.107.17.68 with SMTP id z65mr2733168ioi.3.1509462101547;
        Tue, 31 Oct 2017 08:01:41 -0700 (PDT)
Original-Received: from [127.0.0.1] (glphon2233w-lp130-01-70-53-68-35.dsl.bell.ca. [70.53.68.35])
        by smtp.gmail.com with ESMTPSA id 31sm754784ioq.10.2017.10.31.08.01.40
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Tue, 31 Oct 2017 08:01:40 -0700 (PDT)
X-Mailer: BlackBerry Email (10.3.3.2205)
In-Reply-To: <a30180ed-684d-440d-af4a-ad8aa2e6b3a4@isocpp.org>
X-Original-Sender: tvaneerd@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=LxvgwNwe;       spf=pass
 (google.com: domain of tvaneerd@gmail.com designates 209.85.220.41 as
 permitted sender) smtp.mailfrom=tvaneerd@gmail.com;       dmarc=pass (p=NONE
 sp=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:35185
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/35185>

<html><head></head><body lang=3D"en-US" style=3D"background-color: rgb(255,=
 255, 255); line-height: initial;">                                        =
                                              <div style=3D"width: 100%; fo=
nt-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif=
; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, =
255, 255);">And I was wondering if emplace was going to reuse the existing =
memory (when available) and that might also require coordination with the d=
eleter.</div><div style=3D"width: 100%; font-size: initial; font-family: Ca=
libri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-a=
lign: initial; background-color: rgb(255, 255, 255);"><br></div><div style=
=3D"width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', san=
s-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; backgrou=
nd-color: rgb(255, 255, 255);">Also, unique_ptr supports =E2=80=8Efancy poi=
nters. Keep that in mind.</div>                                            =
                                                                           =
              <div style=3D"width: 100%; font-size: initial; font-family: C=
alibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-=
align: initial; background-color: rgb(255, 255, 255);"><br style=3D"display=
:initial"></div>                                                           =
                                                                           =
                                                             <div style=3D"=
font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-ser=
if; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255=
, 255, 255);">Sent&nbsp;from&nbsp;my&nbsp;BlackBerry&nbsp;portable&nbsp;Bab=
bage&nbsp;Device</div>                                                     =
                                                                           =
                                                  <table width=3D"100%" sty=
le=3D"background-color:white;border-spacing:0px;"> <tbody><tr><td colspan=
=3D"2" style=3D"font-size: initial; text-align: initial; background-color: =
rgb(255, 255, 255);">                           <div style=3D"border-style:=
 solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1=
pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'=
; font-size: 10pt;">  <div><b>From: </b>'Thomas K=C3=B6ppe' via ISO C++ Sta=
ndard - Future Proposals</div><div><b>Sent: </b>Tuesday, October 31, 2017 1=
0:33 AM</div><div><b>To: </b>ISO C++ Standard - Future Proposals</div><div>=
<b>Reply To: </b>std-proposals@isocpp.org</div><div><b>Cc: </b>antanubis@gm=
ail.com</div><div><b>Subject: </b>[std-proposals] Re: Add .emplace() method=
 to std::unique_ptr and std::shared_ptr like it is in std::optional.</div><=
/div></td></tr></tbody></table><div style=3D"border-style: solid none none;=
 border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: in=
itial; text-align: initial; background-color: rgb(255, 255, 255);"></div><b=
r><div id=3D"_originalContent" style=3D""><div dir=3D"ltr">It seems to me t=
hat emplacement should be provided by the deleter, since the deleter does t=
he matching deleting. So perhaps a more fruitful pursuit would be to add an=
 "emplace" to the deleter, and then have the unique_ptr's delete forward to=
 <i>that</i>.</div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" 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>
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/a30180ed-684d-440d-af4a-ad8aa2e6b3a4%=
40isocpp.org?utm_medium=3Demail&amp;utm_source=3Dfooter">https://groups.goo=
gle.com/a/isocpp.org/d/msgid/std-proposals/a30180ed-684d-440d-af4a-ad8aa2e6=
b3a4%40isocpp.org</a>.<br>
<br><!--end of _originalContent --></div></body></html>

<p></p>

-- <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 />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/20171031150140.5156944.20370.38945%40=
gmail.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com=
/a/isocpp.org/d/msgid/std-proposals/20171031150140.5156944.20370.38945%40gm=
ail.com</a>.<br />

.
