220 41502 <40b1d4b8-e872-42b3-89c3-9982a41cd39d@isocpp.org> article
Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail
From: Barry Revzin <barry.revzin@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Draft proposal of std::upto, std::index, std::enumerate
Date: Mon, 25 Feb 2019 07:30:12 -0800 (PST)
Approved: news@gmane.org
Message-ID: <40b1d4b8-e872-42b3-89c3-9982a41cd39d@isocpp.org>
References: <CAB+4KH+2Z2Hy+vRX-tksSRDzkHkn7bt9tkOgjz8nqUn3ABzk=g@mail.gmail.com>
 <CAC+0CCPCYrFAZFZTuChcdc7yhe6dUnWSAXq2VpUso-s4O8Yt4w@mail.gmail.com> <52d9e32b-630f-b501-2780-b790b574849a@gmail.com>
 <CAO8_tC4-P04SLfOA1ZwkMiTyt+XhxeztErt+axOEByu3n_Zcog@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_754_1420997906.1551108612412"
Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226";
	logging-data="97598"; mail-complaints-to="usenet@blaine.gmane.org"
Cc: jake.arkinstall@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBCJJTG7CS4ARBBMU2DRQKGQEQQ2R45A@isocpp.org Mon Feb 25 16:30:19 2019
Return-path: <std-proposals+bncBCJJTG7CS4ARBBMU2DRQKGQEQQ2R45A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw1-f69.google.com ([209.85.161.69])
	by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
	(Exim 4.89)
	(envelope-from <std-proposals+bncBCJJTG7CS4ARBBMU2DRQKGQEQQ2R45A@isocpp.org>)
	id 1gyICu-000PAu-7d
	for gclcip-std-proposals@m.gmane.org; Mon, 25 Feb 2019 16:30:16 +0100
Original-Received: by mail-yw1-f69.google.com with SMTP id g123sf6545143ywb.20
        for <gclcip-std-proposals@m.gmane.org>; Mon, 25 Feb 2019 07:30:16 -0800 (PST)
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=mx7RIXI2rR3JVwyEWGlfY1uGReTedLUsRjeiM6RCgK4=;
        b=0vm/1M/eQ5Ed/OXU0tpsTZ++l6GJOdp3uFCrPW8uI0tKW+hO8QA7hPKCf/e06cWNQ5
         7J0ZWJd/Kptrqs/wZFALzPKhYch2nYZ+tZa6YhkZMErvRvenm3iWN125bMEsoWhjstI9
         JwZD0Ngrv3tZndTG0WLN2cMalHjKPD3lDMunZ/qwV4SXbS6NnB1K2CCrhC3VS9cHvz2N
         1dfou3GuVkvKjdQgqBU10GZ1Fu/qNMJVAqFfboUcny0Cg978T+mWqIQLDyuOIycZGCGB
         C2GMKsz0aXWAftrq5wkCu/cU9J+pHtg/PUxREmkfLrUulr28i9X80UPQY+NAKc+32GCz
         KpQA==
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=mx7RIXI2rR3JVwyEWGlfY1uGReTedLUsRjeiM6RCgK4=;
        b=VGzD80ORjCPm/YwT/CtR5m3QwdWN7Amtizg0eGET0G7278/RkQn4D493b4EoC6ZUNr
         O1eT8m2sNx1AirBYvN5MljD+yi7TsWN7xGWGqjjCoDxO/1MmBtWE71mBlEO0yGACyI7D
         cjBswLxGPkFU5BayKgPp0SKpWD+Y3u8hq09DJWnm6nZimh5ATu0+dJoJrq2pBRxUZZx4
         JoBrFykfBoklIaSgOap7EtXbi18NGX2QpkcwzkeWxrRG2LpY5/qPA9N/+fMgZKVB6+Qp
         4OtNsiNUn0waZGHnRDDzaj1I9I/bljmGN26NfDHSOkuOS9XybuImSlcR9Sy9dADf+2hm
         +0Pg==
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=mx7RIXI2rR3JVwyEWGlfY1uGReTedLUsRjeiM6RCgK4=;
        b=SSlvKVdGCHf0zKaUWRR8biavF5LZD7l1U8cyLVnZQx5C9rFEmGo+s2RujHGGPoJkVG
         FUGaO9SS8Wq6c94HARBWR5lt3BLkGAJNKoIxFb4KjS6uNQDZmxypdxpYgsGcwSeX8DCJ
         8wl3ORI/cRbdX3Ghae2C4B8NMzEWcAgb+rVAPdIYVi11qnivvOUWPk0uwa+l3RpzXsMI
         hS8oCPRp1fX36BeEdaLuUKmuJc6HUqIfKcvIHjwQFOD7wJXh/iyjB62cTPSJiohwb/3i
         6QTDF7DNdccYKJ7BVJv6nC+g+vMLsURTMaK4y/ETyYbm0TJMOzfesxXg+GYMiXVLo8bP
         nsow==
X-Gm-Message-State: AHQUAubovw/BT0PtpDh9cMy2W4EQD2uIKYXp7ZCX5wrfMYRNjrV4MLF9
	z8ufFnoIiSrz0skC1zQk0XQbHw==
X-Google-Smtp-Source: AHgI3IaMzwRvQPgbNcx5E53vL4fznMNLMrqWd6q9u/JUI5fLKgLhOWsdFA5yh9DLrxGo0BM43rxKOQ==
X-Received: by 2002:a25:3841:: with SMTP id f62mr6190069yba.35.1551108614997;
        Mon, 25 Feb 2019 07:30:14 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:a25:3414:: with SMTP id b20ls660634yba.2.gmail; Mon, 25 Feb
 2019 07:30:13 -0800 (PST)
X-Received: by 2002:a25:a365:: with SMTP id d92mr14361865ybi.508.1551108613092;
        Mon, 25 Feb 2019 07:30:13 -0800 (PST)
In-Reply-To: <CAO8_tC4-P04SLfOA1ZwkMiTyt+XhxeztErt+axOEByu3n_Zcog@mail.gmail.com>
X-Original-Sender: Barry.Revzin@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:41502
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/41502>

------=_Part_754_1420997906.1551108612412
Content-Type: multipart/alternative; 
	boundary="----=_Part_755_2077726309.1551108612412"

------=_Part_755_2077726309.1551108612412
Content-Type: text/plain; charset="UTF-8"


On Monday, February 25, 2019 at 8:25:03 AM UTC-6, Andrew Giese wrote:
>
> If std::upto alone makes it into the standard, I am happy.
>

inline constexpr auto upto = []<std::Integral T>(T N) {
    return std::ranges::view::iota(static_cast<T>(0), N);
};

 

-- 
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/40b1d4b8-e872-42b3-89c3-9982a41cd39d%40isocpp.org.

------=_Part_755_2077726309.1551108612412
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br>On Monday, February 25, 2019 at 8:25:03 AM UTC-6, Andr=
ew Giese 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=
">If std::upto alone makes it into the standard, I am happy.</div></blockqu=
ote><div><br></div><div><div class=3D"prettyprint" style=3D"background-colo=
r: rgb(250, 250, 250); border-color: rgb(187, 187, 187); border-style: soli=
d; border-width: 1px; overflow-wrap: break-word;"><code class=3D"prettyprin=
t"><div class=3D"subprettyprint"><span style=3D"color: #008;" class=3D"styl=
ed-by-prettify">inline</span><span style=3D"color: #000;" class=3D"styled-b=
y-prettify"> </span><span style=3D"color: #008;" class=3D"styled-by-prettif=
y">constexpr</span><span style=3D"color: #000;" class=3D"styled-by-prettify=
"> </span><span style=3D"color: #008;" class=3D"styled-by-prettify">auto</s=
pan><span style=3D"color: #000;" class=3D"styled-by-prettify"> upto </span>=
<span style=3D"color: #660;" class=3D"styled-by-prettify">=3D</span><span s=
tyle=3D"color: #000;" class=3D"styled-by-prettify"> </span><span style=3D"c=
olor: #660;" class=3D"styled-by-prettify">[]&lt;</span><span style=3D"color=
: #000;" class=3D"styled-by-prettify">std</span><span style=3D"color: #660;=
" class=3D"styled-by-prettify">::</span><span style=3D"color: #606;" class=
=3D"styled-by-prettify">Integral</span><span style=3D"color: #000;" class=
=3D"styled-by-prettify"> T</span><span style=3D"color: #660;" class=3D"styl=
ed-by-prettify">&gt;(</span><span style=3D"color: #000;" class=3D"styled-by=
-prettify">T N</span><span style=3D"color: #660;" class=3D"styled-by-pretti=
fy">)</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> </sp=
an><span style=3D"color: #660;" class=3D"styled-by-prettify">{</span><span =
style=3D"color: #000;" class=3D"styled-by-prettify"><br>=C2=A0 =C2=A0 </spa=
n><span style=3D"color: #008;" class=3D"styled-by-prettify">return</span><s=
pan style=3D"color: #000;" class=3D"styled-by-prettify"> std</span><span st=
yle=3D"color: #660;" class=3D"styled-by-prettify">::</span><span style=3D"c=
olor: #000;" class=3D"styled-by-prettify">ranges</span><span style=3D"color=
: #660;" class=3D"styled-by-prettify">::</span><span style=3D"color: #000;"=
 class=3D"styled-by-prettify">view</span><span style=3D"color: #660;" class=
=3D"styled-by-prettify">::</span><span style=3D"color: #000;" class=3D"styl=
ed-by-prettify">iota</span><span style=3D"color: #660;" class=3D"styled-by-=
prettify">(</span><span style=3D"color: #008;" class=3D"styled-by-prettify"=
>static_cast</span><span style=3D"color: #660;" class=3D"styled-by-prettify=
">&lt;</span><font color=3D"#000088"><span style=3D"color: #000;" class=3D"=
styled-by-prettify">T</span></font><span style=3D"color: #660;" class=3D"st=
yled-by-prettify">&gt;(</span><span style=3D"color: #066;" class=3D"styled-=
by-prettify">0</span><span style=3D"color: #660;" class=3D"styled-by-pretti=
fy">),</span><span style=3D"color: #000;" class=3D"styled-by-prettify"> N</=
span><span style=3D"color: #660;" class=3D"styled-by-prettify">);</span><sp=
an style=3D"color: #000;" class=3D"styled-by-prettify"><br></span><span sty=
le=3D"color: #660;" class=3D"styled-by-prettify">};</span></div></code></di=
v><br>=C2=A0</div></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/40b1d4b8-e872-42b3-89c3-9982a41cd39d%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/40b1d4b8-e872-42b3-89c3-9982a41cd39d=
%40isocpp.org</a>.<br />

------=_Part_755_2077726309.1551108612412--

------=_Part_754_1420997906.1551108612412--

.
