220 8248 <8045a4d2-721d-4725-8bb7-7a91b6f53ec8@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: abolz.lists@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: string_view::is_null()
Date: Fri, 27 Dec 2013 04:52:12 -0800 (PST)
Lines: 48
Approved: news@gmane.org
Message-ID: <8045a4d2-721d-4725-8bb7-7a91b6f53ec8@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_5003_473001.1388148732176"
X-Trace: ger.gmane.org 1388148732 24271 80.91.229.3 (27 Dec 2013 12:52:12 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 27 Dec 2013 12:52:12 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCAJPLFFWYPBB7PP6WKQKGQEFFBJ7HY@isocpp.org Fri Dec 27 13:52:18 2013
Return-path: <std-proposals+bncBCAJPLFFWYPBB7PP6WKQKGQEFFBJ7HY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qc0-f197.google.com ([209.85.216.197])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCAJPLFFWYPBB7PP6WKQKGQEFFBJ7HY@isocpp.org>)
	id 1VwWtm-0003QN-Q9
	for gclcip-std-proposals@m.gmane.org; Fri, 27 Dec 2013 13:52:18 +0100
Original-Received: by mail-qc0-f197.google.com with SMTP id r5sf10621674qcx.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 27 Dec 2013 04:52:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id: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=1nuZmWz5FkJsG5lQqwPl9refx8y09GG5k6HlCpCC7tg=;
        b=K3kpNfrfuAWDNWHC9+VyMBfqGif58yWJoI6KuevDKY108Cml6lqIqWToWHTAM7WMhT
         kuioDq/IUV4OzjVqyD3Xb7GINO2HKMEvPJzgcqdCMW6dF0O1rpb/+tgUd/RLRaDaTRma
         nZv4UnvKhMDSpeLYUwccn+ob6Bc3CyhJSMuDF6A5TU7i9IEIm4zzqwYDVVTt4pRIrJvW
         9DKklsNaxxGLlRJhVYO2FXTxNba24WqvFjU/Z5J1pnHd2mlGhUXrbRCG36XzFo4pE/tV
         rrJnEvuLCqzMfdgnUwZHBWVUOvaOOPdE3RPP5yOq9abKWQYX/CAWSzSIJmfuYMnIJA/l
         AQ2Q==
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: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=1nuZmWz5FkJsG5lQqwPl9refx8y09GG5k6HlCpCC7tg=;
        b=al/5jp73ZhGA1S35c61Nj2MCZJx5JhUeHLs2/iZkTKqtUoENUsnfOVZBn3FFBBhXUJ
         gstNzrza3HPR7ZjoISAXexW6WCzSAsqlATOBEB2gw76F13o6FK+vwbcVlPje58MxKU/O
         +8LkPhutd0JCVn8JLQ41vIYyTdqTQQGL4njuAeFzSpV0Qa2Dy0LYdhnhWS4G7tl8mwRC
         fw3/P4kxBVMtdvBDIOjD3SVhlohsALpbrZ4kRolfN4M1aA0Qj+ZBJt6LtIb4fpf2J7Wh
         h7/TfV92YeAx1qGG9pEhxazyCVQPubq2E7IvLx02u9xJrWNnLYkF7piOOmSSa6M3PO9n
         hifg==
X-Gm-Message-State: ALoCoQlLqMfV8nJuhYQGEsK1X08e6U18lbzq6AP2g2r8JP9jB5TNu3tnlAEi4deTnvrFDTZZksoH
X-Received: by 10.58.145.233 with SMTP id sx9mr13529809veb.0.1388148733538;
        Fri, 27 Dec 2013 04:52:13 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.104.40 with SMTP id gb8ls2819108qeb.27.gmail; Fri, 27 Dec
 2013 04:52:12 -0800 (PST)
X-Received: by 10.49.94.144 with SMTP id dc16mr13627qeb.21.1388148732857;
        Fri, 27 Dec 2013 04:52:12 -0800 (PST)
X-Original-Sender: abolzlists@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:8248
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/8248>

------=_Part_5003_473001.1388148732176
Content-Type: text/plain; charset=ISO-8859-1



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/.

------=_Part_5003_473001.1388148732176
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><p>Is there a reason why string_view is not nullable?</p><=
div>Nullable here&nbsp;means default constructed or constructed from a null=
ptr</div><div>(and a zero length). Then adding a is_null() (or null()) memb=
er</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 aff=
ect 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 />

------=_Part_5003_473001.1388148732176--

.
