220 33430 <94CDFCD7-3F9D-4D7E-BDD7-58D27561C291@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Howard Hinnant <howard.hinnant@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: [idea for proposal] Adding std::shift to <algorithm>
Date: Fri, 28 Jul 2017 15:19:18 -0400
Lines: 47
Approved: news@gmane.org
Message-ID: <94CDFCD7-3F9D-4D7E-BDD7-58D27561C291@gmail.com>
References: <bd1a5d3b-ccc1-44ab-91cc-a4d7195c9dc3@isocpp.org>
 <3e77c029-bc79-424c-bdad-eba28ec10cdb@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
Content-Type: multipart/signed;
 boundary="Apple-Mail=_EA6096F5-8C45-41D6-A0F1-F9FC44081EE7";
 protocol="application/pgp-signature"; micalg=pgp-sha256
X-Trace: blaine.gmane.org 1501269566 13537 195.159.176.226 (28 Jul 2017 19:19:26 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 28 Jul 2017 19:19:26 +0000 (UTC)
Cc: dan@soundradix.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCK2HM4L6YERBOM453FQKGQEU2QHU5I@isocpp.org Fri Jul 28 21:19:22 2017
Return-path: <std-proposals+bncBCK2HM4L6YERBOM453FQKGQEU2QHU5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-it0-f72.google.com ([209.85.214.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCK2HM4L6YERBOM453FQKGQEU2QHU5I@isocpp.org>)
	id 1dbAn6-00031H-Pw
	for gclcip-std-proposals@m.gmane.org; Fri, 28 Jul 2017 21:19:16 +0200
Original-Received: by mail-it0-f72.google.com with SMTP id 76sf207497298ith.15
        for <gclcip-std-proposals@m.gmane.org>; Fri, 28 Jul 2017 12:19:23 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501269562; cv=pass;
        d=google.com; s=arc-20160816;
        b=1CGrbYskFH2mu+6SMEg0iULcJZYibnvPk3McI6aO4Wt9y65K5ylAWDL7ZGaKgkzDnO
         cQkE+tDESbznIjPVEwexVxbkWNq9E8FAWDaE6wJsi6WoW+9l7Uh9SKcoLsOBVhFXZRVF
         cGJp3IU7SW+Tnvwav5z+imoRfo77uUw9eoscnPOxMwLDMdCIjqM6JF2/dRxzUQfPjElP
         8qqJSAESVjDBUAoNjkMH8ggLyP1qNnY+a+KJoXyTCfX+AJYcYjAXBOXnlRVQhO1qBsHN
         X2IjDRDIY8Qcl9+HgEI3pL78mSKMQKxi+dZLIHjfEfWkgaoX6+/MePlNhW2tANUxk7Ht
         NKOg==
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:references:to:cc
         :in-reply-to:date:subject:mime-version:message-id:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=WCcMXzl88jJuTcsT5WK1i9Zy7f55KFs+tBrNu4n5B/I=;
        b=buKVpqj0WB2WBD8ECJ2jD6ieykCMCitioVuc8lDlYm4TbG0palUr57UnYq1JnGQzBK
         sW+gEQdg7y3WAku8D3EanY+b3teXZN/9OC3JGENabzVpBOV65gN/n2DL4hhKaBihy7me
         1C88zIqAggO95+MEIJTPc6rfZ0tWpaXZI7jY1oKWtHz6vQtrSM6WY/ZyVem7hNT8OkJd
         DEXs/W0bMUP0ceMCBLX2ugnRE+8WqsRevxbLgy6A0tLB7n1eEqrL4Iugt6inAFVuwuye
         3jh1m3m+GwQMfp7u90LFwAv9zLhHy5V8/nJan37BVpP7EN/aie1k0VG7ePkpNwhbNJOE
         XEdw==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=lw4Ek5xJ;
       spf=pass (google.com: domain of howard.hinnant@gmail.com designates 2607:f8b0:4001:c06::22a as permitted sender) smtp.mailfrom=howard.hinnant@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=from:message-id:mime-version:subject:date:in-reply-to:cc:to
         :references: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=WCcMXzl88jJuTcsT5WK1i9Zy7f55KFs+tBrNu4n5B/I=;
        b=e/HzDlUnS/n/dDoEXhSfCsa1vL2ktbu80zGPZBvTaazoyVK6tATotM52KiKmwTLdf/
         5Zy+yqa/6ou5ep5jUMNDwvcSEqnEQsKpUxOsoz75YYPavaUd95f7rmoAvMGWSTriJwFc
         eIcnkV5zdLF2p+6nwv5PuX/5mkkcym136d8DQsGF7EKylYmsS4cps3gTiTY0+ctSL5B1
         xWeDNxTLKvoQQ97qvxd32SgC12ZNMFmqVRIvBYLGuf72yEQADzsjaylMxOqDclkXnthC
         GyLrVX+UBzCAPcA3S8xhYO2lCywIA8FRR2/QbnI6J6iLzdRY2L30B49M/niWZJ/PWyzW
         +avg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:message-id:mime-version:subject:date
         :in-reply-to:cc:to:references: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=WCcMXzl88jJuTcsT5WK1i9Zy7f55KFs+tBrNu4n5B/I=;
        b=hHHRWIO1OkogvS2tw4HfCq3xItw4pq7e6IRf5qzxQpNsIq3cypDl9IZ+TpgezkvJqH
         ai/OEWk3jT26STnsOVbeuI4SAPwQaIq92hFomvnSg/RBIRL4ALxb7Q8eowWj+aAfFpHB
         5W+IA13y+X4kSrhvTpFH0BrXlZpwGtJBiJ0DOJyB3Ku9uuAbFu1ledRY8gnmzG5DcKts
         n9hkLuUFZMo800j9a+Nafk0EKhebKVI8yc0pY3XqMlGzG/zPTBTNLs89baQJx6Ww/IKr
         V1nVj3kWrRRm6u5GWpptIlSpD8PJRa+/9q/L4FpvvVcDdX8/Lk8O6CWnM9imjFfC7NcQ
         BaHw==
X-Gm-Message-State: AIVw110EimGep+QzM7oWDe817YmAANuz1cEgDTc4hIURzrfjSDV1BF9e
	kVXt28bxBH6jsHpe
X-Received: by 10.107.152.148 with SMTP id a142mr3818684ioe.122.1501269562466;
        Fri, 28 Jul 2017 12:19:22 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.36.66 with SMTP id k63ls4821946iok.19.gmail; Fri, 28 Jul
 2017 12:19:21 -0700 (PDT)
X-Received: by 10.107.53.40 with SMTP id c40mr11116713ioa.289.1501269561308;
        Fri, 28 Jul 2017 12:19:21 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501269561; cv=none;
        d=google.com; s=arc-20160816;
        b=HNBSjc2YLwkwvOTVzwp74ieKFDfwD+RtEZgj8Bs4LUCD7/izzg5s57z47ioALsxSd+
         4c+IdjN7GBo1cXc28pmrzqXUGhmE08niGV/emr00J1tzQ7OxWqUKZ54ioYmOTVRaNhy1
         eNhpjUZOlV3hFkq/SDPo7xdYx8REk9KWtuvv7q809kNXTQ0hVzuia8VxGNa1ciFfOoGQ
         zzQgGRyjqi+EbbR0d3qAyUerbIVXmhNE51XLuVfY4/KIVNSTdffigEbqvEWEWK74ioau
         s6HVJoK+BRx3UilNamaWNz0zsMSZkE9srAkkmAC2z7F36G834oW5Z7O7Dr0hZ+T3XSWp
         qLPQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=references:to:cc:in-reply-to:date:subject:mime-version:message-id
         :from:dkim-signature:arc-authentication-results;
        bh=/HzQeukjlCwSor31OACisqzIrKWwzlYkhVg8rv3CpqA=;
        b=vMMo3n1iCQFVqtDdyunhOwLRSKKs+UwNszZ35B8Hb+A283Iw8DEeMOLCowyUzdewvo
         laZPh+vFZvmYSKpqZ53WWqPqEWZMd3oknWcs+tU57PLBXNlPqiawvDcxxdBaJVpye9Kj
         mM6XCx6zB2l44+/yffTzcfjT/rJYG09f+qWcxzdI33LO0o7EM5KGDF5Y8g4wFzK0SVJi
         0taHRPXauXnTug+ITR9Cc93crbprENK+wd5fnPAZhc4rVbfNH+0HhsD70iCpM1gCq1do
         vWLYxk3pB6LDc3rIKB+gDtykPUJFL6DKMLFVVGaTvxILwUyZO09VZHGMk8357C7f4rXf
         VIFA==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=lw4Ek5xJ;
       spf=pass (google.com: domain of howard.hinnant@gmail.com designates 2607:f8b0:4001:c06::22a as permitted sender) smtp.mailfrom=howard.hinnant@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com. [2607:f8b0:4001:c06::22a])
        by mx.google.com with ESMTPS id k21si7351327iok.406.2017.07.28.12.19.21
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 28 Jul 2017 12:19:21 -0700 (PDT)
Received-SPF: pass (google.com: domain of howard.hinnant@gmail.com designates 2607:f8b0:4001:c06::22a as permitted sender) client-ip=2607:f8b0:4001:c06::22a;
Original-Received: by mail-io0-x22a.google.com with SMTP id g35so60652549ioi.3
        for <std-proposals@isocpp.org>; Fri, 28 Jul 2017 12:19:21 -0700 (PDT)
X-Received: by 10.107.133.203 with SMTP id p72mr9965908ioi.194.1501269560919;
        Fri, 28 Jul 2017 12:19:20 -0700 (PDT)
Original-Received: from [10.0.1.2] (cpe-67-241-68-255.twcny.res.rr.com. [67.241.68.255])
        by smtp.gmail.com with ESMTPSA id i202sm8880609itb.5.2017.07.28.12.19.19
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 28 Jul 2017 12:19:20 -0700 (PDT)
In-Reply-To: <3e77c029-bc79-424c-bdad-eba28ec10cdb@isocpp.org>
X-Mailer: Apple Mail (2.3273)
X-Original-Sender: howard.hinnant@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.b=lw4Ek5xJ;       spf=pass (google.com: domain of
 howard.hinnant@gmail.com designates 2607:f8b0:4001:c06::22a as permitted
 sender) smtp.mailfrom=howard.hinnant@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:33430
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33430>


--Apple-Mail=_EA6096F5-8C45-41D6-A0F1-F9FC44081EE7
Content-Type: text/plain; charset="UTF-8"

On Jul 28, 2017, at 2:43 PM, Dan Raviv <dan.raviv@gmail.com> wrote:
> 
> Does anyone know if there was a specific motivation for adding std::move_backward() to <algorithm>? It seems that using std::move() with rbegin(),rend() iterators (for the basic use case) would have the same effect.

See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1771.html

Section 25 - Algorithms library

Howard

-- 
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.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/94CDFCD7-3F9D-4D7E-BDD7-58D27561C291%40gmail.com.

--Apple-Mail=_EA6096F5-8C45-41D6-A0F1-F9FC44081EE7
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJZe442AAoJEGbcHCxKqhWCXjoP/06FKnit2WlIvUO6vMHeJ8Hq
yStDxD4sBibj+jJCdTYVa9V+EOu434xUINyKmItAKIcEZTQBOQutvYtw6v1Uptbk
35c3gDe0qz7HvxMlBmSjeRtmjecTk5BZf9AnXJ1vMgjDl82zq5B/jKH5IB3shHFj
cGYOaxeNcegrhQnffiiI0WBJ+3Sb5v1xjI0NAzLqI3ehDzlqVS4NBCh3g2rRVQTT
TrjShODNHc0BERY5qBlpgojYdvLLYX/tfA9VnZUiJEyDLtwDJW64/yM6qi3A2Tx1
Ok3k+gg7ua76brGY+zi9amP5IesRPLbV0xon5+axyJ4V9olAh5QmFDzwk4sD87io
tX5A2kJARm6Y2033A+x+XYvkabdHD965r3fz2EXmuLqfqSyExM1Eri89s77LTy6k
ukHfLLGN6YuyKbDg28YsQY1+khfB8xjyOT7broUWyRnkG5W0SgH9Fw6VQqufFqMV
AaLRJXdkxRWbeVYvGglnfSXUfV+79dn9op7XUkvnUS8Ykx4xYAbCtplGCSCk0/T8
IB7xYOYe1M4RVkuTu+4X2y7LR1kQ38zaQuEo0BL6omavfCGgWRKE7u4BX2aMcwgV
nnZeLv8hPMd7HtjdETvuSRXgf1BWfWrhBdggkbHotr7LygG75IRqbYOZQr18popB
84hfwU3Z/30YKU5xdIB5
=5636
-----END PGP SIGNATURE-----

--Apple-Mail=_EA6096F5-8C45-41D6-A0F1-F9FC44081EE7--

.
