220 33198 <c722a201-5c9c-4ac5-a1bd-e50beb6d7860@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Nicol Bolas <jmckesson@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: [idea for proposal] Adding std::shift to <algorithm>
Date: Wed, 12 Jul 2017 18:43:11 -0700 (PDT)
Lines: 299
Approved: news@gmane.org
Message-ID: <c722a201-5c9c-4ac5-a1bd-e50beb6d7860@isocpp.org>
References: <bd1a5d3b-ccc1-44ab-91cc-a4d7195c9dc3@isocpp.org>
 <68bbd6d3-1578-43e1-b15f-563c9d6fb27c@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_166_819055649.1499910191274"
X-Trace: blaine.gmane.org 1499910195 28624 195.159.176.226 (13 Jul 2017 01:43:15 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Thu, 13 Jul 2017 01:43:15 +0000 (UTC)
Cc: dan@soundradix.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCEKFTV6ZUMBBMFATPFQKGQE2WFK6JA@isocpp.org Thu Jul 13 03:43:10 2017
Return-path: <std-proposals+bncBCEKFTV6ZUMBBMFATPFQKGQE2WFK6JA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pf0-f199.google.com ([209.85.192.199])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCEKFTV6ZUMBBMFATPFQKGQE2WFK6JA@isocpp.org>)
	id 1dVT9o-00072p-Gi
	for gclcip-std-proposals@m.gmane.org; Thu, 13 Jul 2017 03:43:09 +0200
Original-Received: by mail-pf0-f199.google.com with SMTP id e199sf40350473pfh.7
        for <gclcip-std-proposals@m.gmane.org>; Wed, 12 Jul 2017 18:43:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=fbm7aTp2VjQoTAs1qJdjVo4wPLuyt2bu1F0KU/tHBg8=;
        b=1zHM6I0SCvIRAswx+yNwAYnORsydtSfz/TMg4cJHObr27ortJKa9gz92N0xKg1jeIN
         d8Ldf401Ml6Qq3mtM2MFZCVuUtaYT1uLio4tt7Gk7Ue0UlGjtr0FEES2TwQBiFWtOTDz
         bl+sXVJlvyiEt4Gq1EzsLcl01sWhsFVPlWcpUhvhs4OFLTqjOJ3EhjcOni8S7er/6qLx
         JYZ4ZbSltYEoFfjWC3O8d+GFC/P4A1AsoiSQQPVEz/pn+COLD73U8nk6yohzPgDXodAi
         uufambK1582kPvFVNnXpDyYN53uSJzm5BHlj49r+WPHWmJ6PAXogyeMgTsREJNcZOD45
         9Krw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=fbm7aTp2VjQoTAs1qJdjVo4wPLuyt2bu1F0KU/tHBg8=;
        b=N1/IF4SmmgKpkE8OBXhqHqMVNqYYWSIwGlQ0JCAR5NmPEUW7PfXxABkPPLPXODnrGq
         78XAW2YK3mtkKkMaao1upIt9pJ6WnUMyk2SyQ9/ozlX2OqBHs+xCds+cbQFz95ksYAtX
         zt1PLwp0kV74j+JFULNd3iHoo6f7hFd01U9jhuv+yQd/Dw/GdcjGd6VnvlP1Dj4fslSC
         yuBt4JbOTUkSK6lYJ3pxhgboeZ6LP8znRNS5gGfjtOQCZMsqV9bYs6wEWufn8l4yu5kw
         0pEiwnjWWsp3eifMXk19qFwnRiuyGttQAm6sfSPiEoin4uoYdyhlyQTnSxzj+vBqir29
         +nWA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to
         :references:subject:mime-version:x-original-sender:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=fbm7aTp2VjQoTAs1qJdjVo4wPLuyt2bu1F0KU/tHBg8=;
        b=tru7cDlXzpSvRu8L/e8edaYHsGbgrHpfD+HBYv5AduL+yPRIAnMQ9xDVGiwyRAE037
         ydW+GBZMuwq1NU/6KSzSAZH8TmvcFdgYlQdCQ1i9voXONlpIqgm1/bDF90jRtHtovcxV
         UJflppHopSQffpIsWOcJcq3gT2ogttrJBSNU8R8f6tKeMMhOGnIcYUSOCBQVGYsInx/X
         Qs3PZO5mWKjEp/49nQXVYlcTaC3CtlkDVAKntE7a2qVvV6NMevsJccDKosIA1aYWtTZv
         juBI9b0lr/IRUgkAAMrgAZLG8HPg/F5QweQWX4+CU/U0FkzLNDsvqeX4BzWuDXzscAdy
         2REA==
X-Gm-Message-State: AIVw112UgV0PDYB7Lx5IpXBeruTGzMY4XkOWQCqsUXqSNXmEXm6Cc+v1
	D3/Ki20nlLRj2/Yt
X-Received: by 10.99.185.83 with SMTP id v19mr4356517pgo.11.1499910193431;
        Wed, 12 Jul 2017 18:43:13 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.77.10 with SMTP id l10ls993452itb.4.canary-gmail; Wed, 12
 Jul 2017 18:43:11 -0700 (PDT)
X-Received: by 10.31.48.151 with SMTP id w145mr4212vkw.16.1499910191780;
        Wed, 12 Jul 2017 18:43:11 -0700 (PDT)
In-Reply-To: <68bbd6d3-1578-43e1-b15f-563c9d6fb27c@isocpp.org>
X-Original-Sender: jmckesson@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:33198
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33198>

------=_Part_166_819055649.1499910191274
Content-Type: multipart/alternative; 
	boundary="----=_Part_167_271704742.1499910191275"

------=_Part_167_271704742.1499910191275
Content-Type: text/plain; charset="UTF-8"

On Wednesday, July 12, 2017 at 7:47:05 PM UTC-4, Arthur O'Dwyer wrote:
>
> On Wednesday, July 12, 2017 at 2:53:19 AM UTC-7, d...@soundradix.com 
> wrote:
>>
>> Hi,
>>
>> Would anyone be interested in adding std::shift to <algorithm>? 
>>
>> It would be similar to both:
>> - std::rotate, but without moving the head elements back to the tail. 
>> This would allow a more efficient implementation and clearer semantics in 
>> case rotation is not needed as well as correctness in case rotation is 
>> undesired.
>> - <algorithm>'s std::move/std::move_backward (depending on the shift 
>> direction).
>>
>> std::shift should probably accommodate both left and right shifts by one 
>> of:
>> - giving it either begin() and end(), or rbegin() and rend(), similar to 
>> how std::rotate works for both left and right rotations. The advantage is 
>> compactness of the implementation.
>> - allowing the shift count parameter to be either positive or negative. 
>> The advantage is compactness, though it might not be clear which direction 
>> is which - to be consistent with rotate, positive integers should shift to 
>> the left.
>> - having std::shift_right and std::shift_left functions. The advantage is 
>> clarity when calling the methods, although the same argument could be made 
>> for having separate std::rotate_left and std::rotate_right instead of 
>> std::rotate, which we don't have.
>>
>
> std::rotate is actually just a rotation; it doesn't need "left" or "right" 
> qualification because they're 100% equivalent. Consider a classroom globe 
> with London in front, facing you. Now "rotate" the globe until Beijing is 
> in front. It doesn't matter if you rotate left or rotate right; the outcome 
> is exactly the same either way.
>  
>
>> Here's a sample implementation of a shift to the right direction:
>>
>> template<class BidirIt> 
>> void shift_right(BidirIt first, BidirIt last, unsigned int n = 1) 
>> { 
>>     std::move_backward(first, last - n, last); 
>> }
>>
>> This demonstrates that while std::shift is implementable with 
>> std::move/std::move_backward,
>> 1) It isn't immediately clear from the code (at least to my eyes) that 
>> this is a shift right, unless you are intimately familiar with 
>> std::move_backward.
>> 2) Different calls, either to std::move or to std::move_backward, are 
>> required, depending on the shift direction.
>>
>
> If you're shifting the whole container's contents, you could use either of 
> these:
>     std::move(ctr.rbegin() + n, ctr.rend(), ctr.rbegin());
>     std::move_backward(ctr.begin(), ctr.end() - n, ctr.end())?
> I don't currently see the use-case for this "shift just a piece of a 
> container" algorithm, I mean as distinct from std::move and 
> std::move_backward which already exist. Do you have a use-case?
>

The use-case would be anytime you'd want to use the code you just wrote. 
When you have a range and N, and you want to do a shift N units in that 
direction.

The point of having it is one of clarification and user expectations. Yes, 
you can use `move` and `move_backward` to accomplish a shift. But consider 
the two function calls:

//A
std::shift(rng.begin(), rng.end(), N);

//B
auto rrng = std::make_reverse_range(rng);
std::move(rrng.begin() + N, rrng.end(), rrng.begin());

A and B both do the same thing. But it's a *lot easier* to figure out what 
the code is actually accomplishing from looking at A than B.

B gets even more obtuse confusing in a range-based world:

//A
std::shift(rng, N);

//B
auto rrng = std::make_reverse_range(rng);
std::move(std::make_range(rrng.begin + N, rrng.end()), rrng.begin());

-- 
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/c722a201-5c9c-4ac5-a1bd-e50beb6d7860%40isocpp.org.

------=_Part_167_271704742.1499910191275
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On Wednesday, July 12, 2017 at 7:47:05 PM UTC-4, Arthur O&=
#39;Dwyer wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin=
-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"lt=
r">On Wednesday, July 12, 2017 at 2:53:19 AM UTC-7, <a>d...@soundradix.com<=
/a> wrote:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-left:0=
..8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">Hi,<div>=
<br></div><div>Would anyone be interested in adding std::shift to &lt;algor=
ithm&gt;?=C2=A0</div><div><br></div><div>It would be similar to both:</div>=
<div>- std::rotate, but without moving the head elements back to the tail. =
This would allow a more efficient implementation and clearer semantics in c=
ase rotation is not needed as well as correctness in case rotation is undes=
ired.</div><div>- &lt;algorithm&gt;&#39;s std::move/std::move_backward (dep=
ending on the shift direction).</div><div><br></div><div>std::shift should =
probably accommodate both left and right shifts by one of:</div><div>- givi=
ng it either begin() and end(), or rbegin() and rend(), similar to how std:=
:rotate works for both left and right rotations. The advantage is compactne=
ss of the implementation.</div><div>- allowing the shift count parameter to=
 be either positive or negative. The advantage is compactness, though it mi=
ght not be clear which direction is which - to be consistent with rotate, p=
ositive integers should shift to the left.<br></div><div><div>- having std:=
:shift_right and std::shift_left functions. The advantage is clarity when c=
alling the methods, although the same argument could be made for having sep=
arate std::rotate_left and std::rotate_right instead of std::rotate, which =
we don&#39;t have.</div></div></div></blockquote><div><br></div><div>std::r=
otate is actually just a rotation; it doesn&#39;t need &quot;left&quot; or =
&quot;right&quot; qualification because they&#39;re 100% equivalent. Consid=
er a classroom globe with London in front, facing you. Now &quot;rotate&quo=
t; the globe until Beijing is in front. It doesn&#39;t matter if you rotate=
 left or rotate right; the outcome is exactly the same either way.</div><di=
v>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0;margin-le=
ft:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div=
>Here&#39;s a sample implementation of a shift to the right direction:<br><=
/div><br><div style=3D"background-color:rgb(250,250,250);border:1px solid r=
gb(187,187,187);word-wrap:break-word"><code><div><span style=3D"color:#008"=
>template</span><span style=3D"color:#660">&lt;</span><span style=3D"color:=
#008">class</span><span style=3D"color:#000"> </span><span style=3D"color:#=
606">BidirIt</span><span style=3D"color:#660">&gt;</span><span style=3D"col=
or:#000"> <br></span><span style=3D"color:#008">void</span><span style=3D"c=
olor:#000"> shift_right</span><span style=3D"color:#660">(</span><span styl=
e=3D"color:#606">BidirIt</span><span style=3D"color:#000"> first</span><spa=
n style=3D"color:#660">,</span><span style=3D"color:#000"> </span><span sty=
le=3D"color:#606">BidirIt</span><span style=3D"color:#000"> </span><span st=
yle=3D"color:#008">last</span><span style=3D"color:#660">,</span><span styl=
e=3D"color:#000"> </span><span style=3D"color:#008">unsigned</span><span st=
yle=3D"color:#000"> </span><span style=3D"color:#008">int</span><span style=
=3D"color:#000"> n </span><span style=3D"color:#660">=3D</span><span style=
=3D"color:#000"> </span><span style=3D"color:#066">1</span><span style=3D"c=
olor:#660">)</span><span style=3D"color:#000"> <br></span><span style=3D"co=
lor:#660">{</span><span style=3D"color:#000"> <br>=C2=A0 =C2=A0 std</span><=
span style=3D"color:#660">::</span><span style=3D"color:#000">move_backward=
</span><span style=3D"color:#660">(</span><span style=3D"color:#000">first<=
/span><span style=3D"color:#660">,</span><span style=3D"color:#000"> </span=
><span style=3D"color:#008">last</span><span style=3D"color:#000"> </span><=
span style=3D"color:#660">-</span><span style=3D"color:#000"> n</span><span=
 style=3D"color:#660">,</span><span style=3D"color:#000"> </span><span styl=
e=3D"color:#008">last</span><span style=3D"color:#660">);</span><span style=
=3D"color:#000"> <br></span><span style=3D"color:#660">}</span><span style=
=3D"color:#000"><br></span></div></code></div><div><br></div><div>This demo=
nstrates that while std::shift is implementable with std::move/std::move_ba=
ckward,</div><div>1) It isn&#39;t immediately clear from the code (at least=
 to my eyes) that this is a shift right, unless you are intimately familiar=
 with std::move_backward.</div><div>2) Different calls, either to std::move=
 or to std::move_backward, are required, depending on the shift direction.<=
/div></div></blockquote><div><br></div><div>If you&#39;re shifting the whol=
e container&#39;s contents, you could use either of these:</div><div>=C2=A0=
 =C2=A0 std::move(ctr.rbegin() + n, ctr.rend(), ctr.rbegin());</div><div>=
=C2=A0 =C2=A0 std::move_backward(ctr.begin()<wbr>, ctr.end() - n, ctr.end()=
)?</div><div>I don&#39;t currently see the use-case for this &quot;shift ju=
st a piece of a container&quot; algorithm, I mean as distinct from std::mov=
e and std::move_backward which already exist. Do you have a use-case?</div>=
</div></blockquote><div><br>The use-case would be anytime you&#39;d want to=
 use the code you just wrote. When you have a range and N, and you want to =
do a shift N units in that direction.<br><br>The point of having it is one =
of clarification and user expectations. Yes, you can use `move` and `move_b=
ackward` to accomplish a shift. But consider the two function calls:<br><br=
><div style=3D"background-color: rgb(250, 250, 250); border-color: rgb(187,=
 187, 187); border-style: solid; border-width: 1px; overflow-wrap: break-wo=
rd;" class=3D"prettyprint"><code class=3D"prettyprint"><div class=3D"subpre=
ttyprint"><span style=3D"color: #800;" class=3D"styled-by-prettify">//A</sp=
an><span style=3D"color: #000;" class=3D"styled-by-prettify"><br>std</span>=
<span style=3D"color: #660;" class=3D"styled-by-prettify">::</span><span st=
yle=3D"color: #000;" class=3D"styled-by-prettify">shift</span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">(</span><span style=3D"color=
: #000;" class=3D"styled-by-prettify">rng</span><span style=3D"color: #660;=
" class=3D"styled-by-prettify">.</span><span style=3D"color: #008;" class=
=3D"styled-by-prettify">begin</span><span style=3D"color: #660;" class=3D"s=
tyled-by-prettify">(),</span><span style=3D"color: #000;" class=3D"styled-b=
y-prettify"> rng</span><span style=3D"color: #660;" class=3D"styled-by-pret=
tify">.</span><span style=3D"color: #008;" class=3D"styled-by-prettify">end=
</span><span style=3D"color: #660;" class=3D"styled-by-prettify">(),</span>=
<span style=3D"color: #000;" class=3D"styled-by-prettify"> N</span><span st=
yle=3D"color: #660;" class=3D"styled-by-prettify">);</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"><br><br></span><span style=3D"col=
or: #800;" class=3D"styled-by-prettify">//B</span><span style=3D"color: #00=
0;" class=3D"styled-by-prettify"><br></span><span style=3D"color: #008;" cl=
ass=3D"styled-by-prettify">auto</span><span style=3D"color: #000;" class=3D=
"styled-by-prettify"> rrng </span><span style=3D"color: #660;" class=3D"sty=
led-by-prettify">=3D</span><span style=3D"color: #000;" class=3D"styled-by-=
prettify"> std</span><span style=3D"color: #660;" class=3D"styled-by-pretti=
fy">::</span><span style=3D"color: #000;" class=3D"styled-by-prettify">make=
_reverse_range</span><span style=3D"color: #660;" class=3D"styled-by-pretti=
fy">(</span><span style=3D"color: #000;" class=3D"styled-by-prettify">rng</=
span><span style=3D"color: #660;" class=3D"styled-by-prettify">);</span><sp=
an style=3D"color: #000;" class=3D"styled-by-prettify"><br>std</span><span =
style=3D"color: #660;" class=3D"styled-by-prettify">::</span><span style=3D=
"color: #000;" class=3D"styled-by-prettify">move</span><span style=3D"color=
: #660;" class=3D"styled-by-prettify">(</span><span style=3D"color: #000;" =
class=3D"styled-by-prettify">rrng</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">.</span><span style=3D"color: #008;" class=3D"style=
d-by-prettify">begin</span><span style=3D"color: #660;" class=3D"styled-by-=
prettify">()</span><span style=3D"color: #000;" class=3D"styled-by-prettify=
"> </span><span style=3D"color: #660;" class=3D"styled-by-prettify">+</span=
><span style=3D"color: #000;" class=3D"styled-by-prettify"> N</span><span s=
tyle=3D"color: #660;" class=3D"styled-by-prettify">,</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify"> rrng</span><span style=3D"color:=
 #660;" class=3D"styled-by-prettify">.</span><span style=3D"color: #008;" c=
lass=3D"styled-by-prettify">end</span><span style=3D"color: #660;" class=3D=
"styled-by-prettify">(),</span><span style=3D"color: #000;" class=3D"styled=
-by-prettify"> rrng</span><span style=3D"color: #660;" class=3D"styled-by-p=
rettify">.</span><span style=3D"color: #008;" class=3D"styled-by-prettify">=
begin</span><span style=3D"color: #660;" class=3D"styled-by-prettify">());<=
/span></div></code></div><br>A and B both do the same thing. But it&#39;s a=
 <i>lot easier</i> to figure out what the code is actually accomplishing fr=
om looking at A than B.<br><br>B gets even more obtuse confusing in a range=
-based world:<br><br><div style=3D"background-color: rgb(250, 250, 250); bo=
rder-color: rgb(187, 187, 187); border-style: solid; border-width: 1px; ove=
rflow-wrap: break-word;" class=3D"prettyprint"><code class=3D"prettyprint">=
<div class=3D"subprettyprint"><span style=3D"color: #800;" class=3D"styled-=
by-prettify">//A</span><span style=3D"color: #000;" class=3D"styled-by-pret=
tify"><br>std</span><span style=3D"color: #660;" class=3D"styled-by-prettif=
y">::</span><span style=3D"color: #000;" class=3D"styled-by-prettify">shift=
</span><span style=3D"color: #660;" class=3D"styled-by-prettify">(</span><s=
pan style=3D"color: #000;" class=3D"styled-by-prettify">rng</span><span sty=
le=3D"color: #660;" class=3D"styled-by-prettify">,</span><span style=3D"col=
or: #000;" class=3D"styled-by-prettify"> N</span><span style=3D"color: #660=
;" class=3D"styled-by-prettify">);</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"><br><br></span><span style=3D"color: #800;" class=
=3D"styled-by-prettify">//B</span><span style=3D"color: #000;" class=3D"sty=
led-by-prettify"><br></span><span style=3D"color: #008;" class=3D"styled-by=
-prettify">auto</span><span style=3D"color: #000;" class=3D"styled-by-prett=
ify"> rrng </span><span style=3D"color: #660;" class=3D"styled-by-prettify"=
>=3D</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> std</=
span><span style=3D"color: #660;" class=3D"styled-by-prettify">::</span><sp=
an style=3D"color: #000;" class=3D"styled-by-prettify">make_reverse_range</=
span><span style=3D"color: #660;" class=3D"styled-by-prettify">(</span><spa=
n style=3D"color: #000;" class=3D"styled-by-prettify">rng</span><span style=
=3D"color: #660;" class=3D"styled-by-prettify">);</span><span style=3D"colo=
r: #000;" class=3D"styled-by-prettify"><br>std</span><span style=3D"color: =
#660;" class=3D"styled-by-prettify">::</span><span style=3D"color: #000;" c=
lass=3D"styled-by-prettify">move</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">(</span><span style=3D"color: #000;" class=3D"style=
d-by-prettify">std</span><span style=3D"color: #660;" class=3D"styled-by-pr=
ettify">::</span><span style=3D"color: #000;" class=3D"styled-by-prettify">=
make_range</span><span style=3D"color: #660;" class=3D"styled-by-prettify">=
(</span><span style=3D"color: #000;" class=3D"styled-by-prettify">rrng</spa=
n><span style=3D"color: #660;" class=3D"styled-by-prettify">.</span><span s=
tyle=3D"color: #008;" class=3D"styled-by-prettify">begin</span><span style=
=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"color=
: #660;" class=3D"styled-by-prettify">+</span><span style=3D"color: #000;" =
class=3D"styled-by-prettify"> N</span><span style=3D"color: #660;" class=3D=
"styled-by-prettify">,</span><span style=3D"color: #000;" class=3D"styled-b=
y-prettify"> rrng</span><span style=3D"color: #660;" class=3D"styled-by-pre=
ttify">.</span><span style=3D"color: #008;" class=3D"styled-by-prettify">en=
d</span><span style=3D"color: #660;" class=3D"styled-by-prettify">()),</spa=
n><span style=3D"color: #000;" class=3D"styled-by-prettify"> rrng</span><sp=
an style=3D"color: #660;" class=3D"styled-by-prettify">.</span><span style=
=3D"color: #008;" class=3D"styled-by-prettify">begin</span><span style=3D"c=
olor: #660;" class=3D"styled-by-prettify">());</span></div></code></div></d=
iv></div>

<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/c722a201-5c9c-4ac5-a1bd-e50beb6d7860%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/c722a201-5c9c-4ac5-a1bd-e50beb6d7860=
%40isocpp.org</a>.<br />

------=_Part_167_271704742.1499910191275--

------=_Part_166_819055649.1499910191274--

.
