220 11524 <CAGg_6+Mho5iG4ExrPgK15PDhfvvboHGMHbnpekC=fw8UJjwo4A@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Nevin Liber <nevin@eviloverlord.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Add support for move-only types in std::priority_queue
Date: Thu, 19 Jun 2014 09:49:10 +0200
Lines: 64
Approved: news@gmane.org
Message-ID: <CAGg_6+Mho5iG4ExrPgK15PDhfvvboHGMHbnpekC=fw8UJjwo4A@mail.gmail.com>
References: <2fff5775-3cb1-433f-b01f-8018a65eec82@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e0141a202274f6004fc2b9f9e
X-Trace: ger.gmane.org 1403164202 15563 80.91.229.3 (19 Jun 2014 07:50:02 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Thu, 19 Jun 2014 07:50:02 +0000 (UTC)
To: "std-proposals@isocpp.org" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCE35H5S6IDBBH5MRKOQKGQEPJYNKMY@isocpp.org Thu Jun 19 09:49:55 2014
Return-path: <std-proposals+bncBCE35H5S6IDBBH5MRKOQKGQEPJYNKMY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-la0-f70.google.com ([209.85.215.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCE35H5S6IDBBH5MRKOQKGQEPJYNKMY@isocpp.org>)
	id 1WxX6W-0000u7-9u
	for gclcip-std-proposals@m.gmane.org; Thu, 19 Jun 2014 09:49:52 +0200
Original-Received: by mail-la0-f70.google.com with SMTP id s18sf1286537lam.9
        for <gclcip-std-proposals@m.gmane.org>; Thu, 19 Jun 2014 00:49:52 -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:sender: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=oJtb8SaZK5Tqh0IB2MEV4nFJurP2daEbCNMpa7z9DRQ=;
        b=QZ4W+RPs9NI0wfVHwWIrqGvCfJ3gCfngGQ3b82KPXZlJR+rmMtjn0XXJ4szcM37sva
         D9w4dZgTy+GRExc3kNd72IgYFI2h7BYZq7MUK1gXEUS2Bx2nwAJxIjkZXI6lSqAz0Bcu
         OkhJC/s4WyrVWDS22oEDTSgEXXUkSYfDr53bMlXZYfwSR7L3gXLMgP7qcH8wyHnwAx66
         PxnUptY6V9HC+Ofkrc/xYabfXAGk6huUJxkyL+YJ8zcwhEjUi6meg7a2swqeUCGFfiHM
         0ymY7QF3QhN0iq353Xyxsw5SGYu+JFxOf+24VzH5Sq4MwX5hKS3zIid077akA1UqN78S
         2Dkw==
X-Gm-Message-State: ALoCoQlEaUh592gBvbDszMKyuv7ZmWXKiC2gGoYrYrMewv2qheXWdsfZcqNiC0pbcI0B0oCSecUq
X-Received: by 10.152.21.133 with SMTP id v5mr13122lae.9.1403164192066;
        Thu, 19 Jun 2014 00:49:52 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.180.96.34 with SMTP id dp2ls651419wib.24.canary; Thu, 19 Jun
 2014 00:49:51 -0700 (PDT)
X-Received: by 10.180.90.242 with SMTP id bz18mr4283929wib.12.1403164190990;
        Thu, 19 Jun 2014 00:49:50 -0700 (PDT)
Original-Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [2a00:1450:400c:c05::22c])
        by mx.google.com with ESMTPS id j1si6156070wjx.36.2014.06.19.00.49.50
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Thu, 19 Jun 2014 00:49:50 -0700 (PDT)
Received-SPF: pass (google.com: domain of nliber@gmail.com designates 2a00:1450:400c:c05::22c as permitted sender) client-ip=2a00:1450:400c:c05::22c;
Original-Received: by mail-wi0-f172.google.com with SMTP id hi2so8849433wib.11
        for <std-proposals@isocpp.org>; Thu, 19 Jun 2014 00:49:50 -0700 (PDT)
X-Received: by 10.194.243.10 with SMTP id wu10mr3207092wjc.44.1403164190787;
 Thu, 19 Jun 2014 00:49:50 -0700 (PDT)
Original-Sender: nliber@gmail.com
Original-Received: by 10.194.122.71 with HTTP; Thu, 19 Jun 2014 00:49:10 -0700 (PDT)
In-Reply-To: <2fff5775-3cb1-433f-b01f-8018a65eec82@isocpp.org>
X-Original-Sender: nevin@eviloverlord.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of nliber@gmail.com designates 2a00:1450:400c:c05::22c as permitted
 sender) smtp.mail=nliber@gmail.com;       dkim=pass header.i=@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:11524
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/11524>

--089e0141a202274f6004fc2b9f9e
Content-Type: text/plain; charset=UTF-8

On 19 June 2014 09:46, <alex.shtf@gmail.com> wrote:

> Currently there is no clean way use move-only types in
> std::priority_queue. The top() function returns a const-reference and the
> pop() function does not return anything.
> I suggest adding a function, extract_top() that is equivalent to pop()
> except that it also returns the element that was at the top.
>

What should happen if an exception is thrown?
-- 
 Nevin ":-)" Liber  <mailto:nevin@eviloverlord.com>  (847) 691-1404

-- 

--- 
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/.

--089e0141a202274f6004fc2b9f9e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 19 June 2014 09:46,  <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:alex.shtf@gmail.com" target=3D"_blank">alex.shtf@gmail.com</a>&gt;</s=
pan> wrote:<br><div class=3D"gmail_extra"><div class=3D"gmail_quote"><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex">

<div dir=3D"ltr">Currently there is no clean way use move-only types in std=
::priority_queue. The top() function returns a const-reference and the pop(=
) function does not return anything.<br>I suggest adding a function, extrac=
t_top() that is equivalent to pop() except that it also returns the element=
 that was at the top.<br>

</div></blockquote><div><br></div><div>What should happen if an exception i=
s thrown?</div></div>-- <br>=C2=A0Nevin &quot;:-)&quot; Liber=C2=A0 &lt;mai=
lto:<a href=3D"mailto:nevin@eviloverlord.com" target=3D"_blank">nevin@evilo=
verlord.com</a>&gt;=C2=A0 (847) 691-1404
</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"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--089e0141a202274f6004fc2b9f9e--

.
