220 8249 <52bdaac0.272dec0a.41c7.ffffb45d@mx.google.com> article
Path: news.gmane.org!not-for-mail
From: "=?utf-8?B?YmlsbHkub25lYWxAZ21haWwuY29t?=" <billy.oneal@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: string_view::is_null()
Date: Fri, 27 Dec 2013 08:28:47 -0800
Lines: 91
Approved: news@gmane.org
Message-ID: <52bdaac0.272dec0a.41c7.ffffb45d@mx.google.com>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_Part_0_1388161727454"
X-Trace: ger.gmane.org 1388161727 31241 80.91.229.3 (27 Dec 2013 16:28:47 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 27 Dec 2013 16:28:47 +0000 (UTC)
To: "=?utf-8?B?c3RkLXByb3Bvc2Fscw==?=" <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDKLBLVE6ADBBQOV62KQKGQE2FGNA3I@isocpp.org Fri Dec 27 17:28:52 2013
Return-path: <std-proposals+bncBDKLBLVE6ADBBQOV62KQKGQE2FGNA3I@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-ob0-f200.google.com ([209.85.214.200])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDKLBLVE6ADBBQOV62KQKGQE2FGNA3I@isocpp.org>)
	id 1VwaHK-0002zL-Oq
	for gclcip-std-proposals@m.gmane.org; Fri, 27 Dec 2013 17:28:51 +0100
Original-Received: by mail-ob0-f200.google.com with SMTP id wm4sf42137926obc.11
        for <gclcip-std-proposals@m.gmane.org>; Fri, 27 Dec 2013 08:28:49 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:message-id:to:from:subject:date:mime-version
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:list-post:list-help:list-archive
         :list-subscribe:list-unsubscribe:content-type;
        bh=s7Kfj23DJLKnJ1k3NetKwmNj0j+aqBAWTa3WscRAyj0=;
        b=aTpZ2fGL6uCWnOkcazxodbu/AUZMQwOg4c97RH8I9be2A0X0w+8tF28CJVyxSrED7A
         V9W5rNIyN9jvUWw6rmxOuTHpBld0VSIpkKSLwwac6QBtRPR+UHfQjjpTfPz1p8camAn3
         Trx497SpTPcFrRzOTGda5Usj//4vy32W+nlO0pEXc7Sqy0sw780N5UD4XSf/MFm4pVD3
         sT0zbJk2sXYNiSymctMNP38pxSouJTrYXQw7E21RGGyZwUaJQXdDTpETVY6818hzVtEV
         P8sDIwBNf1viXZT3WcpxiH5HvxepG5/L1FQ/s4xq5DCs+gzbg11zuKn75MlfJa1fmLK7
         7spg==
X-Gm-Message-State: ALoCoQkpnOj407nU7fK5unnQckSVRrFJc1HPj5zhMNLNMe0wugLQqvOXtoMhXqHq9fXitJzy6oxC
X-Received: by 10.50.41.101 with SMTP id e5mr20889799igl.0.1388161729625;
        Fri, 27 Dec 2013 08:28:49 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.36.229 with SMTP id t5ls2696870qej.61.gmail; Fri, 27 Dec
 2013 08:28:49 -0800 (PST)
X-Received: by 10.49.110.72 with SMTP id hy8mr56343101qeb.67.1388161729018;
        Fri, 27 Dec 2013 08:28:49 -0800 (PST)
Original-Received: from mail-gg0-x230.google.com (mail-gg0-x230.google.com [2607:f8b0:4002:c02::230])
        by mx.google.com with ESMTPS id b6si12727976qca.85.2013.12.27.08.28.48
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 27 Dec 2013 08:28:49 -0800 (PST)
Received-SPF: pass (google.com: domain of billy.oneal@gmail.com designates 2607:f8b0:4002:c02::230 as permitted sender) client-ip=2607:f8b0:4002:c02::230;
Original-Received: by mail-gg0-f176.google.com with SMTP id l12so1910600gge.21
        for <std-proposals@isocpp.org>; Fri, 27 Dec 2013 08:28:48 -0800 (PST)
X-Received: by 10.236.174.37 with SMTP id w25mr33651214yhl.36.1388161728769;
        Fri, 27 Dec 2013 08:28:48 -0800 (PST)
Original-Received: from [2601:8:9780:880:55df:aec9:bc48:dfef] ([2601:8:9780:880:55df:aec9:bc48:dfef])
        by mx.google.com with ESMTPSA id o27sm47250067yhb.19.2013.12.27.08.28.47
        for <std-proposals@isocpp.org>
        (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
        Fri, 27 Dec 2013 08:28:48 -0800 (PST)
X-Original-Sender: billy.oneal@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of billy.oneal@gmail.com designates 2607:f8b0:4002:c02::230 as
 permitted sender) smtp.mail=billy.oneal@gmail.com;       dkim=pass
 header.i=@gmail.com;       dmarc=pass (p=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: <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: <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:8249
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8249>

------=_Part_0_1388161727454
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline

Because it is designed to approximate a "std::string const&" which isn't nullable either.

Sent from a touchscreen. Please excuse the brevity and tpyos.

----- Reply message -----
From: abolz.lists@gmail.com
To: <std-proposals@isocpp.org>
Subject: [std-proposals] string_view::is_null()
Date: Fri, Dec 27, 2013 4:52 AM

Is there a reason why string_view is not nullable?Nullable here means default constructed or constructed from a nullptr
(and a zero length). Then adding a is_null() (or null()) member
function which can then be used to distinguish the string_view from an
empty string.

This should not affect data() which returns a non-null pointer.





-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

-- 

--- 
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.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_0_1388161727454
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div style=3D"font-size: 12pt; font-family: Calibri,sans-serif;"><div>Becau=
se it is designed to approximate a "std::string const&amp;" which isn't nul=
lable either.</div><div><br></div><div>Sent from a touchscreen. Please excu=
se the brevity and tpyos.</div><br><div id=3D"htc_header">----- Reply messa=
ge -----<br>From: abolz.lists@gmail.com<br>To: &lt;std-proposals@isocpp.org=
&gt;<br>Subject: [std-proposals] string_view::is_null()<br>Date: Fri, Dec 2=
7, 2013 4:52 AM</div></div><br><div dir=3D"ltr"><p>Is there a reason why st=
ring_view is not nullable?</p><div>Nullable here&nbsp;means default constru=
cted or constructed from a nullptr</div><div>(and a zero length). Then addi=
ng a is_null() (or null()) member</div><div>function which can then be used=
 to distinguish the string_view from an</div><div>empty string.</div><div><=
br></div><p>This should not affect data() which returns a non-null pointer.=
<br></p></div>

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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 />

<p></p>

-- <br />
&nbsp;<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 std-proposals+unsubscribe@isocpp.org.<br />
To post to this group, send email to std-proposals@isocpp.org.<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_0_1388161727454--


.
