220 13624 <e8b51487-c89f-4804-8652-15971a4c2502@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Matthew Fioravante <fmatthew5876@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: The view concept
Date: Fri, 3 Oct 2014 10:25:10 -0700 (PDT)
Lines: 176
Approved: news@gmane.org
Message-ID: <e8b51487-c89f-4804-8652-15971a4c2502@isocpp.org>
References: <428c47bd-67f2-47d1-98c0-e5ca85698076@isocpp.org>
 <FF740D55-733D-4969-8388-FC9E53F05C65@gmail.com>
 <e622f246-8a01-455d-9269-7b9595230185@isocpp.org>
 <CAOU91OMW1c89oyoKhpF5BgXiOmGfK5RNwwhQ+9FWM+JJKgbTNw@mail.gmail.com>
 <CAOHCbisJEJrau7kr5d8uYXq=A0pG-86uEc0QmhPTjVHJj5EzMA@mail.gmail.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_575_946484599.1412357110388"
X-Trace: ger.gmane.org 1412357120 29163 80.91.229.3 (3 Oct 2014 17:25:20 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 3 Oct 2014 17:25:20 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDELF54RTIGRB55XXOQQKGQELDXBAIA@isocpp.org Fri Oct 03 19:25:13 2014
Return-path: <std-proposals+bncBDELF54RTIGRB55XXOQQKGQELDXBAIA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f71.google.com ([209.85.220.71])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDELF54RTIGRB55XXOQQKGQELDXBAIA@isocpp.org>)
	id 1Xa6bR-0001AS-62
	for gclcip-std-proposals@m.gmane.org; Fri, 03 Oct 2014 19:25:13 +0200
Original-Received: by mail-pa0-f71.google.com with SMTP id rd3sf12711977pab.2
        for <gclcip-std-proposals@m.gmane.org>; Fri, 03 Oct 2014 10:25:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to: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
         :content-type;
        bh=nDBvSOmW7X+wN9fO087TErJu1lknAOJvVVVLaxW8JD4=;
        b=0MJWEV0uvmfueuk2eaawNtTxIsLBJc5yRTRteX1LcvDWqMTtAqrxFqBcK5DoZHejZb
         RXiAR6a6MUk5VsoxcnPI19xCByiEP8EFjeDUjep+zjCoFDRDS8DLo5Dt55fLwPEz3Bn5
         U7tA3rhzlYgzFsP4LJLjrE0RtwdtingVQZ7RJFNtA1Y8wL2cDhm37a0uRkDFuEi+jQtP
         hmeQe1dbMeBkaQTeWFfQcgJn9+unutsrmQJg9uIQs4/SOKa1teSRuOwskrRpdYs3/GiQ
         nKu0fDFbOXxdBRjXiBxKZk4TiLYbbFpl6JOK+jnGR4Qev5IMIwxdccm9j2AxmWuCYXpD
         QCKw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:date:from:to: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:content-type;
        bh=nDBvSOmW7X+wN9fO087TErJu1lknAOJvVVVLaxW8JD4=;
        b=Jxftb8cFqulTbblj0lBEuHQyN52tdaaSo4dOzdro4TqJ8w6UNt9NSWS/7jBXLZx6WY
         nZgun0FSbqDh3e3BXXRHuQCNC5B8w4Fz57SXS041FYaUVHBNPPEdFGs3qBRhC1Qyocr+
         ynKJGbJE/bjIuWwOsUaoMfp53dFOjHmjc7YEU3la8z4Knn0Go+twzNv7fxNyDsfpuUxN
         2lVTvxi7ctRODHjuj2fySFoUz+ETc3A8uLtl9pe8shkwtQ1ZS3zbngqy/sM2JQkpYv8g
         NTaq6dUx0BWHlSS0oqG/6Cqo29hGWgKgnuf8AMkVhlg8lxGFQHGjqoft8YFlKYtsQJiP
         oqqQ==
X-Gm-Message-State: ALoCoQlS0xCmYv+Gi1numIbKVHgLGLsEO/6RIGr2eyeXCk3rtibn56wBYahT2scDHqzlWqQb1AvF
X-Received: by 10.66.188.104 with SMTP id fz8mr2647326pac.6.1412357111830;
        Fri, 03 Oct 2014 10:25:11 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.140.81.82 with SMTP id e76ls1225984qgd.87.gmail; Fri, 03 Oct
 2014 10:25:10 -0700 (PDT)
X-Received: by 10.140.31.195 with SMTP id f61mr441qgf.41.1412357110918;
        Fri, 03 Oct 2014 10:25:10 -0700 (PDT)
In-Reply-To: <CAOHCbisJEJrau7kr5d8uYXq=A0pG-86uEc0QmhPTjVHJj5EzMA@mail.gmail.com>
X-Original-Sender: fmatthew5876@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>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:13624
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/13624>

------=_Part_575_946484599.1412357110388
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable



On Friday, October 3, 2014 12:54:14 PM UTC-4, Tony V E wrote:
>
>
>
> On Fri, Oct 3, 2014 at 9:17 AM, Klaim - Jo=C3=ABl Lamotte <mjk...@gmail.c=
om=20
> <javascript:>> wrote:
>
>> I think that the most important question to answer is: what would be the=
=20
>> difference between a range and a view?=E2=80=8B
>>
>
> One major likely difference is that range =3D=3D will probably be 'shallo=
w'. =20
> Deep-compare will probably be a function.
>

I suppose the difference is that a range is a subset of a container, where=
=20
as a view is a container itself, that is a non-owning container. In this=20
sense a view is not actually a range at all but you can create a range over=
=20
a view for generic algorithm processing. You can also create a view from a=
=20
range.

Since view is a container, operator=3D=3D is deep because its operating on =
the=20
container contents. However view is a non-owning container, so operator=3D=
=20
reassigns it to a new owner. We should have some way to do shallow compare=
=20
and deep copy for a view.
=20

> =20
> In general, I think a 'view' is this name we use where we'd like to use=
=20
> range, but know that we haven't solidified what we mean by range yet, so =
we=20
> are punting and going with 'view' for now.
>
> Also a view is a less-generic range.  ie string_view has more than just=
=20
> range features, it also copies over all the functions from string.
>

I think we should not call a view a range at all but a kind of container.
=20

>
>
> It looks to me that current researches on ranges suggest that the=20
>> distinction exists (or at least between ranges and containers).
>>
>> --=20
>>
>> ---=20
>> You received this message because you are subscribed to the Google Group=
s=20
>> "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this group and stop receiving emails from it, send a=
n=20
>> email to std-proposal...@isocpp.org <javascript:>.
>> To post to this group, send email to std-pr...@isocpp.org <javascript:>.
>> Visit this group at=20
>> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>>
>
>

--=20

---=20
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 e=
mail 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-proposa=
ls/.

------=_Part_575_946484599.1412357110388
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On Friday, October 3, 2014 12:54:14 PM UTC-4, Tony=
 V E 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"><b=
r><div><br><div class=3D"gmail_quote">On Fri, Oct 3, 2014 at 9:17 AM, Klaim=
 - Jo=C3=ABl Lamotte <span dir=3D"ltr">&lt;<a href=3D"javascript:" target=
=3D"_blank" gdf-obfuscated-mailto=3D"6Tjwpl8fm2QJ" onmousedown=3D"this.href=
=3D'javascript:';return true;" onclick=3D"this.href=3D'javascript:';return =
true;">mjk...@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204=
,204);padding-left:1ex"><div dir=3D"ltr">I think that the most important qu=
estion to answer is: what would be the difference between a range and a vie=
w?=E2=80=8B</div></blockquote><div><br></div><div><div>One major likely dif=
ference is that range =3D=3D will probably be 'shallow'.&nbsp; Deep-compare=
 will probably be a function.<br></div></div></div></div></div></blockquote=
><div><br>I suppose the difference is that a range is a subset of a contain=
er, where as a view is a container itself, that is a non-owning container. =
In this sense a view is not actually a range at all but you can create a ra=
nge over a view for generic algorithm processing. You can also create a vie=
w from a range.<br><br>Since view is a container, operator=3D=3D is deep be=
cause its operating on the container contents. However view is a non-owning=
 container, so operator=3D reassigns it to a new owner. We should have some=
 way to do shallow compare and deep copy for a view.<br>&nbsp;</div><blockq=
uote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-lef=
t: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr"><div><div class=3D"g=
mail_quote"><div><div>&nbsp;<br></div><div>In general, I think a 'view' is =
this name we use where we'd like to use range, but know that we haven't sol=
idified what we mean by range yet, so we are punting and going with 'view' =
for now.<br></div><br></div><div>Also a view is a less-generic range.&nbsp;=
 ie string_view has more than just range features, it also copies over all =
the functions from string.<br></div></div></div></div></blockquote><div><br=
>I think we should not call a view a range at all but a kind of container.<=
br>&nbsp;<br></div><blockquote class=3D"gmail_quote" style=3D"margin: 0;mar=
gin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D=
"ltr"><div><div class=3D"gmail_quote"><div><br></div><br><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>It looks to me that =
current researches on ranges suggest that the distinction exists (or at lea=
st between ranges and containers).</div></div><span><font color=3D"#888888"=
>

<p></p>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D"=
6Tjwpl8fm2QJ" onmousedown=3D"this.href=3D'javascript:';return true;" onclic=
k=3D"this.href=3D'javascript:';return true;">std-proposal...@<wbr>isocpp.or=
g</a>.<br>
To post to this group, send email to <a href=3D"javascript:" target=3D"_bla=
nk" gdf-obfuscated-mailto=3D"6Tjwpl8fm2QJ" onmousedown=3D"this.href=3D'java=
script:';return true;" onclick=3D"this.href=3D'javascript:';return true;">s=
td-pr...@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank" onmousedown=3D"this.href=3D'http://groups=
..google.com/a/isocpp.org/group/std-proposals/';return true;" onclick=3D"thi=
s.href=3D'http://groups.google.com/a/isocpp.org/group/std-proposals/';retur=
n true;">http://groups.google.com/a/<wbr>isocpp.org/group/std-<wbr>proposal=
s/</a>.<br>
</font></span></blockquote></div><br></div></div>
</blockquote></div>

<p></p>

-- <br />
<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 <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 />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_575_946484599.1412357110388--

.
