220 22954 <fb223556-ca80-43ef-a055-3da48764481a@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: jensa <jens.muaddib@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Use of optional<T> in the standard library
Date: Mon, 30 Nov 2015 05:11:01 -0800 (PST)
Lines: 56
Approved: news@gmane.org
Message-ID: <fb223556-ca80-43ef-a055-3da48764481a@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_243_376730565.1448889061751"
X-Trace: ger.gmane.org 1448889073 30962 80.91.229.3 (30 Nov 2015 13:11:13 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 30 Nov 2015 13:11:13 +0000 (UTC)
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBDJ27LVBTMMRBZ4V6GZAKGQESUAYLOY@isocpp.org Mon Nov 30 14:11:06 2015
Return-path: <std-proposals+bncBDJ27LVBTMMRBZ4V6GZAKGQESUAYLOY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-pa0-f70.google.com ([209.85.220.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDJ27LVBTMMRBZ4V6GZAKGQESUAYLOY@isocpp.org>)
	id 1a3OET-0002Yh-MQ
	for gclcip-std-proposals@m.gmane.org; Mon, 30 Nov 2015 14:11:05 +0100
Original-Received: by pafh4 with SMTP id h4sf70854908paf.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 30 Nov 2015 05:11:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:message-id:subject:mime-version:content-type
         :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=w3IQGb6/ljEq4PVwtYFSBbOk7v0nbebeppB4pSQSlfc=;
        b=uc4VIavDEhYHOPNLY2fd7LPqvwyFo6nIWgflvpzhoY5ITox/VZEvGLQD198vrX2qzN
         L/Sl8DuyJyIRheWBImZpl9VMX99YLS220gpPU0PkcGJHPzvKHjTAfALWnG60peCZxGgv
         GUmdy1Ffq1msT8pg7Myq/qJoVWSKayAycgGjdPoYg8SQEF310kP+y712KhhcdhU8gnei
         3VqTxuQsnVRVsNxMQC+lP7Ub1Wd5y+dkiCyYpxFv4oleCb0d/quMv6yCmLqt7+U6WEIi
         BYTmirfbB3xnlxgBZJ16EFv9rJtnJKFcRY3uRVFRCSAEfSQXPurkmJwGdkHZgmsfG1LG
         DY1A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:message-id:subject:mime-version:content-type
         :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=w3IQGb6/ljEq4PVwtYFSBbOk7v0nbebeppB4pSQSlfc=;
        b=lhwHZYfYApGGW1ydD5y6fP5R5ZC8VogIiZBHhQZ5qmHZj5xHn4JJMQmCPg72E3g9H/
         dwycVvI4I5/e5KF8vWZsYATrS471wRQ14ug0oojhv13dosR8nSm7nWyWxvuZSgAwkMeS
         zi32+rnlZcsZ6BnvT2GGR7XQPxecg0EIuoBsnM6Tgg0ypoK0jV16fJ70JN4vBvZ4XNQO
         j77ZaWXsl7WqVCU8jWv3SKtTdLb8UajYZKS1cFbIbMC1WJPpdDaMahY/lMU3zj+cqo4t
         T/A4IpuAvitiYuxwASPSIvRW7NSHUw1tQHD2/UhvauWrcAEOvNEesfMgWcNSEAGAIXUX
         jqww==
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
         :content-type: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=w3IQGb6/ljEq4PVwtYFSBbOk7v0nbebeppB4pSQSlfc=;
        b=FkaEfQaFyVjwY2R8bnF41VXgS4VZzDLrk7Sam53NUmkYd1b279bmeMx/VF9BKb1HrU
         iyuRsPcS3asgrdfTM6q63I1kf0sNaba3mj59T9+g9S0A7980QiR0N+W3DerRRPWAGXSv
         259O20GFLa8szHuDYV3JLs0MlVw1cWHA13rlY82SiR61aog2l8UOBjkLe4cyQpxEnJoM
         YKXhaddJMFEPV4Y8wtfWJhwyaUPFAXkAQUCx7F4cinGwjMd9ybOrQNKYBGqjLNaoHLCd
         JTwB/w+59TztMFu0cGBJpSIpUVbIulYIVmqP1LNUoyVXSc4T4l9JcZ6h4fd0Ir3H/HAf
         ZLMw==
X-Gm-Message-State: ALoCoQm2Pmpp9k4QTjaodnzRi1OPShqqdbtZ97nEIucdcpg7I3788QVToqOTkCKAGq5kFVm4Vuft
X-Received: by 10.66.192.234 with SMTP id hj10mr58692160pac.28.1448889064183;
        Mon, 30 Nov 2015 05:11:04 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.4.138 with SMTP id 132ls1013470ioe.16.gmail; Mon, 30 Nov
 2015 05:11:03 -0800 (PST)
X-Received: by 10.50.57.84 with SMTP id g20mr279272igq.3.1448889063002;
        Mon, 30 Nov 2015 05:11:03 -0800 (PST)
X-Original-Sender: jens.muaddib@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:22954
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/22954>

------=_Part_243_376730565.1448889061751
Content-Type: multipart/alternative; 
	boundary="----=_Part_244_647611034.1448889061751"

------=_Part_244_647611034.1448889061751
Content-Type: text/plain; charset=UTF-8

Hi,

with optional<T> being part of the standard library, are there any plans to 
make use of it in standard library components? One specific example that I 
am thinking of is to deprecate the std::basic_string::find* functions that 
return npos when nothing is found, and replace them with functions 
returning optional<size_t>.

Best wishes,
  Jens

-- 

--- 
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_244_647611034.1448889061751
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<br><br>with<code> optional&lt;T&gt; being part of the =
standard library, are there any plans to make use of it in standard library=
 components? One specific example that I am thinking of is to deprecate the=
 std::basic_string::find* functions that return npos when nothing is found,=
 and replace them with functions returning optional&lt;size_t&gt;.<br><br>B=
est wishes,<br>=C2=A0 Jens<br></code></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_244_647611034.1448889061751--
------=_Part_243_376730565.1448889061751--

.
