220 33433 <96DEA673-B79C-4D08-AE8E-EFFCA3C5A0E8@gmail.com> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Dan Raviv <dan.raviv@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: [idea for proposal] Adding std::shift to <algorithm>
Date: Fri, 28 Jul 2017 23:51:39 +0300
Lines: 29
Approved: news@gmane.org
Message-ID: <96DEA673-B79C-4D08-AE8E-EFFCA3C5A0E8@gmail.com>
References: <bd1a5d3b-ccc1-44ab-91cc-a4d7195c9dc3@isocpp.org> <3e77c029-bc79-424c-bdad-eba28ec10cdb@isocpp.org> <94CDFCD7-3F9D-4D7E-BDD7-58D27561C291@gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset="UTF-8"
X-Trace: blaine.gmane.org 1501275105 352 195.159.176.226 (28 Jul 2017 20:51:45 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 28 Jul 2017 20:51:45 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC5YJREBWAGRBXWH53FQKGQEGKETB5I@isocpp.org Fri Jul 28 22:51:39 2017
Return-path: <std-proposals+bncBC5YJREBWAGRBXWH53FQKGQEGKETB5I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f69.google.com ([209.85.215.69])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5YJREBWAGRBXWH53FQKGQEGKETB5I@isocpp.org>)
	id 1dbCET-00085S-13
	for gclcip-std-proposals@m.gmane.org; Fri, 28 Jul 2017 22:51:37 +0200
Original-Received: by mail-lf0-f69.google.com with SMTP id m86sf53261571lfi.12
        for <gclcip-std-proposals@m.gmane.org>; Fri, 28 Jul 2017 13:51:43 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501275103; cv=pass;
        d=google.com; s=arc-20160816;
        b=taM8dmMSW5FtY4LrB3g13J6mQObqXLO4coTb+IqWmDi2MBOEm76+AGaH3SUy3mQV/W
         UdJsxQkvRfF+alboXFx8sDf5L4P30oR94knqBnbD0quWOE9EVbhJBx7KNqAfZeQTCRz8
         9+jFXIQZsxHe1cSUpqcIcG5xsx40C2T9KCdhGl7jHK6PzXnVCesjacl5lcY99UkTBZQA
         C9JYzvu/n9Z12ZSmB6qNJGmL6yfr7PqEbFvZjHvCn+/hXHAN4ilW52mK4qUsMPUDdLh8
         fyA+ZplmlX+dAjuBod+5dqMCr5k6+J3KE2Kvs3JtVvU3QtJLyyARdHJnunhFLjO0kNIg
         Aerw==
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:to:in-reply-to:references
         :message-id:subject:date:mime-version:from
         :arc-authentication-results:arc-message-signature:dkim-signature
         :arc-authentication-results;
        bh=a/27+8JZOkplocK9Gg2pHFcmQ7oKmPORS4KWamJhfmw=;
        b=K/e+XQNz9T4L0FVyg0hdRalIeyzCql2j84VxHrwAnGLl21iNnme2drhBdbhF1Mv39o
         ajidGnL4ss5vbWP5375qnkS75WHh67Yx3hH1D4gMd69kd13lwSq0eXxdOwJx3hpWzJV1
         Mim3btT9f139NN4G5PRCuV17+bqCIi+GzQ71WTPy3Mtv9YkmFhDiXx78EYNYCi/CDWqt
         blpOkkszJjGtiCTXWsxIO146YGTRDpiuv/bzT5EpsrlmsVfp0jIRDT8kXhndYK2FxTbO
         MpfQuUD8cXQ6ryWheuKxdkejfGw7QG4mKyeoLEfLB6yOUd1KkO36WQhwOIPaHH4jUDnl
         BOng==
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=VYtkhpKW;
       spf=pass (google.com: domain of dan.raviv@gmail.com designates 2a00:1450:400c:c0c::234 as permitted sender) smtp.mailfrom=dan.raviv@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:mime-version:date:subject:message-id:references:in-reply-to: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;
        bh=a/27+8JZOkplocK9Gg2pHFcmQ7oKmPORS4KWamJhfmw=;
        b=pC7VyxwDHjOBqsQrLaLLkhZqbKjz3wyYlwrQkdJH+mlRFTvqUTkufCv9+6PWX7KXSl
         WTDU0nVn86gbSpz6ywsQwd04jkPZacyFBsl0N+uIhgLnTNV2HFjmHMeoQJpLc4cqQD8k
         AnxR+tyTIfDbyhRziyM7BseCkFAgEgWkJvxi77wt0q6XVO6nua45nX+r/NHx3y3hxZqx
         3r1j0nQ3N1erjOrSv4XICXV1nuM7Z+3tHxqGF9+6sXUpXL/xGKm2eIN6mWwgOH6Y1Br/
         99aKsFSVRsBo9buWy/ACUPOCiLsf5WfoEfGS+OMca6JvuGzSbdGvdQhUlHhrtbp/hCW2
         B0sQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:mime-version:date:subject:message-id
         :references:in-reply-to:to: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=a/27+8JZOkplocK9Gg2pHFcmQ7oKmPORS4KWamJhfmw=;
        b=gVNzPXgRSyejMvs98P9B3CS7xLOE73c025fdE2eHx//vz/ql7XFKS22csoHtTZmg01
         kHiGp4X4O45RXB6msi5igHnInfuNkUN3e5G7WX6Hea9mIdrwD681AvTtgMSRVknOTl5w
         23BKiVCLYMMCcPcsUtXLmhFRQM+ismh/rGNcUCFZD08pGCvJiK7PcUuqGjEOSOJsFH0I
         OT7rrGBO2khnjcdrRiii4S/SHMaqSy6up4rzoJ4/8MFdIVkkUofNTdUqpB3XfJx3Mlnd
         vqkYgPQAcZbJbVfid1q4I45+Pn95xcYYzDCTYsLH1xM6Dtsbt6VGKN4S1r5e9FHmGiFj
         P2Iw==
X-Gm-Message-State: AIVw111rwaCWGSEs56bik3NLtytIW0mV6FtoU2lpJsLEdrORaZs3/Bwh
	5wnaLkR8J/919Qx8
X-Received: by 10.46.25.82 with SMTP id p79mr181924lje.5.1501275103105;
        Fri, 28 Jul 2017 13:51:43 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.64.194 with SMTP id n185ls1183601wma.16.canary-gmail; Fri,
 28 Jul 2017 13:51:41 -0700 (PDT)
X-Received: by 10.28.210.149 with SMTP id j143mr6033251wmg.146.1501275101762;
        Fri, 28 Jul 2017 13:51:41 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501275101; cv=none;
        d=google.com; s=arc-20160816;
        b=KcI7g/HQXeTiMJ3PKil0Tbsqf0lBEwti3m1D/nspog3RUc3QQCrpK3l1LcSAF8A9PX
         Hej2xku/GPPkcxYECDOuoYYyNRi2wbH2M3Yeq87HftCpxyF/OoI0ZdRHPrVZefudGlGK
         vvI/6HaBcvZoqkcuQXVT2oi1MSo7gR1ragdlx078wUSTlMxnDxvtKo0McXOt22aiLE5D
         qyaleZnzC4apChQyuDGq76fogt0Wpp5ULuqlz3cUhpN27LT5AiX5tLFxM4ESGgigNth8
         NzuINxIsQlTFpJ5HID9c+yeqrN/TMB312WEjH7+RAbdFtkrXkb4oT6dF9ho8sa7s46hm
         NjcQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=to:in-reply-to:references:message-id:subject:date:mime-version
         :content-transfer-encoding:from:dkim-signature
         :arc-authentication-results;
        bh=kowlWGemTP8fX80mzDwbm1dtdQ/qGX+/eCXWxsep7+M=;
        b=Aka1g7pbotoNcAXuqz5SP/nGIrR2E0CFtUytOrtF4NHXszLjwirqLaPCLhDScFPJS2
         nDpBzhDsKJ1fhaEav84vlrHl0tpUhJ6uaDhvW8/OhZeXPNUad3Se0ndRIaugLbWx9fqb
         fq6/kNz1n9YFA61S2Su0G3Zw7IbvOtlQxvRYqaQXg5US3oYZLE+8rH9GIY8VOScOC/YM
         NCr1ZyZddVXSXcOk0RuCOoL9ShRX9QiT6WFgpgg5J51i+guSf3VXKZSsoqeEEVHucqC4
         JJnzUM627etnrz9DIPcQSr1qBd1FNljKjQOOPyVb4WJy1ghs6Qo/bVWW53bJeXSE9sP/
         S2Bw==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.b=VYtkhpKW;
       spf=pass (google.com: domain of dan.raviv@gmail.com designates 2a00:1450:400c:c0c::234 as permitted sender) smtp.mailfrom=dan.raviv@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-wr0-x234.google.com (mail-wr0-x234.google.com. [2a00:1450:400c:c0c::234])
        by mx.google.com with ESMTPS id l38si5312521wrc.193.2017.07.28.13.51.41
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 28 Jul 2017 13:51:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of dan.raviv@gmail.com designates 2a00:1450:400c:c0c::234 as permitted sender) client-ip=2a00:1450:400c:c0c::234;
Original-Received: by mail-wr0-x234.google.com with SMTP id f21so102677957wrf.5
        for <std-proposals@isocpp.org>; Fri, 28 Jul 2017 13:51:41 -0700 (PDT)
X-Received: by 10.223.131.135 with SMTP id 7mr6702642wre.161.1501275101299;
        Fri, 28 Jul 2017 13:51:41 -0700 (PDT)
Original-Received: from [192.168.1.6] ([141.226.165.147])
        by smtp.gmail.com with ESMTPSA id 39sm18954568wrv.23.2017.07.28.13.51.40
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 28 Jul 2017 13:51:40 -0700 (PDT)
In-Reply-To: <94CDFCD7-3F9D-4D7E-BDD7-58D27561C291@gmail.com>
X-Mailer: iPhone Mail (14G60)
X-Original-Sender: dan.raviv@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.b=VYtkhpKW;       spf=pass (google.com: domain of
 dan.raviv@gmail.com designates 2a00:1450:400c:c0c::234 as permitted sender)
 smtp.mailfrom=dan.raviv@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:33433
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33433>

It looks like that section mentions the addition of std::move_backward, but not the rationale for adding it in addition to std::move. Or am I missing something?

Thanks,
Dan

> On 28 Jul 2017, at 22:19, Howard Hinnant <howard.hinnant@gmail.com> wrote:
> 
>> 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.

-- 
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/96DEA673-B79C-4D08-AE8E-EFFCA3C5A0E8%40gmail.com.

.
