220 2672 <CA+Acj4fnCPDP2wPVts1B4Zaz6xzZ899=A=6ShTUqw_Ep5gN7pg@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: "Andrew C. Morrow" <andrew.c.morrow@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: A proposal to add swap traits to the standard library
Date: Sat, 2 Feb 2013 11:37:04 -0500
Lines: 80
Approved: news@gmane.org
Message-ID: <CA+Acj4fnCPDP2wPVts1B4Zaz6xzZ899=A=6ShTUqw_Ep5gN7pg@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=f46d0401229f590b5704d4c078d6
X-Trace: ger.gmane.org 1359823024 7722 80.91.229.3 (2 Feb 2013 16:37:04 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 2 Feb 2013 16:37:04 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDDP5Z6JXQHBBMMBWWEAKGQERX2J36Y@isocpp.org Sat Feb 02 17:37:25 2013
Return-path: <std-proposals+bncBDDP5Z6JXQHBBMMBWWEAKGQERX2J36Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wg0-f69.google.com ([74.125.82.69])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDDP5Z6JXQHBBMMBWWEAKGQERX2J36Y@isocpp.org>)
	id 1U1g5k-0003g5-Jq
	for gclcip-std-proposals@m.gmane.org; Sat, 02 Feb 2013 17:37:24 +0100
Original-Received: by mail-wg0-f69.google.com with SMTP id fn15sf5581560wgb.8
        for <gclcip-std-proposals@m.gmane.org>; Sat, 02 Feb 2013 08:37:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=x-received:x-beenthere:x-received:x-received:received-spf
         :mime-version:x-received:date:message-id:subject:from:to
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-google-group-id:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe:content-type;
        bh=BAd8TuZNaVYFEQDAsodMNRklE3fjVVlmopYphEOzfOk=;
        b=q2vFzIc5w/C3+9jOHvhnEI6xoFO3/44Vzmu+Ik4dYYzbuvtGbiUE0BSQFOGudrhQIr
         e5EOsNLm9MGv2zwPSM63q2CBSfSPUkqb8uuBPesq2Ojm0dU0WjMndpqWSGAbOsw//ybk
         d8FG0Co4Hptoz7PFo/t8qg0DcHvjmgdr6VU2AhUqL/S2PoFqFm55RKjLkJNi26EqlmrH
         y3mGRHJztySskNLW8zNcrLAQ9rZP25DYZ4xpyQ3vC5a+cN34KP4/LqwPED0GZ/VEUFQD
         myXABdCGhmlnhJH3ZftrtU+ggpeGmV8qKeDs/uR+H01i+r9knXGeonmLRgWLMBW4V0CH
         v9gw 
X-Received: by 10.152.147.129 with SMTP id tk1mr3389895lab.0.1359823026060;
        Sat, 02 Feb 2013 08:37:06 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.103.68 with SMTP id fu4ls109998lab.102.gmail; Sat, 02 Feb
 2013 08:37:05 -0800 (PST)
X-Received: by 10.112.17.137 with SMTP id o9mr6308171lbd.15.1359823025152;
        Sat, 02 Feb 2013 08:37:05 -0800 (PST)
X-Received: by 10.112.17.137 with SMTP id o9mr6308170lbd.15.1359823025125;
        Sat, 02 Feb 2013 08:37:05 -0800 (PST)
Original-Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232])
        by mx.google.com with ESMTPS id sz3si5157129lab.15.2013.02.02.08.37.05
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Sat, 02 Feb 2013 08:37:05 -0800 (PST)
Received-SPF: pass (google.com: domain of andrew.c.morrow@gmail.com designates 2a00:1450:4010:c03::232 as permitted sender) client-ip=2a00:1450:4010:c03::232;
Original-Received: by mail-la0-f50.google.com with SMTP id ec20so3582815lab.9
        for <std-proposals@isocpp.org>; Sat, 02 Feb 2013 08:37:05 -0800 (PST)
X-Received: by 10.112.44.164 with SMTP id f4mr6210558lbm.43.1359823024753;
 Sat, 02 Feb 2013 08:37:04 -0800 (PST)
Original-Received: by 10.112.49.102 with HTTP; Sat, 2 Feb 2013 08:37:04 -0800 (PST)
X-Original-Sender: andrew.c.morrow@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of andrew.c.morrow@gmail.com designates 2a00:1450:4010:c03::232 as
 permitted sender) smtp.mail=andrew.c.morrow@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?hl=en>,
 <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?hl=en&topic=25838>,
 <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/?hl=en>
List-Subscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe?hl=en>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:2672
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/2672>

--f46d0401229f590b5704d4c078d6
Content-Type: text/plain; charset=ISO-8859-1

Hi all -

I'd like to propose the addition of two new type relationship traits to the
C++ standard library:

template<typename T, typename U = T>
struct std::is_swappable;

template<typename T, typename U = T>
struct std::is_nothrow_swappable;

The purpose of these two new traits is primarily to make it easier to
correctly query the noexcept status of swap when writing a noexcept
expression.

A draft of the proposal can be found here:
http://acmorrow.github.com/swap_traits/nXXXX.html

This is my first proposal, so it may need some work yet. I'd appreciate
your feedback and suggestions.

Thanks for your time,
Andrew

-- 

--- 
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/?hl=en.



--f46d0401229f590b5704d4c078d6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div style>Hi all -</div><div style><br></div><div sty=
le>I&#39;d like to propose the addition of two new type relationship traits=
 to the C++ standard library:</div><div style><br></div><div style><font fa=
ce=3D"courier new, monospace">template&lt;typename T, typename U =3D T&gt;<=
/font></div>
<div style><font face=3D"courier new, monospace">struct std::is_swappable;<=
/font></div><div style><font face=3D"courier new, monospace"><br></font></d=
iv><div style><font face=3D"courier new, monospace">template&lt;typename T,=
 typename U =3D T&gt;</font></div>
<div style><font face=3D"courier new, monospace">struct std::is_nothrow_swa=
ppable;</font></div><div style><br></div><div style>The purpose of these tw=
o new traits is primarily to make it easier to correctly query the noexcept=
 status of swap when writing a noexcept expression.</div>
<div style><br></div><div style>A draft of the proposal can be found here:=
=A0<a href=3D"http://acmorrow.github.com/swap_traits/nXXXX.html">http://acm=
orrow.github.com/swap_traits/nXXXX.html</a></div><div style><br></div><div =
style>
This is my first proposal, so it may need some work yet. I&#39;d appreciate=
 your feedback and suggestions.</div><div style><br></div><div style>Thanks=
 for your time,</div><div style>Andrew</div><div style><br></div></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/?hl=3Den">http://groups.google.com/a/isocpp.org/group/std-pro=
posals/?hl=3Den</a>.<br />
&nbsp;<br />
&nbsp;<br />

--f46d0401229f590b5704d4c078d6--

.
