220 6191 <4a0b0541-75c5-440f-b4f3-67a0ac352dbd@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: Vlad from Moscow <vlad.moscow@mail.ru>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Specialization of std::stack for std::forward_list
Date: Fri, 6 Sep 2013 11:25:45 -0700 (PDT)
Lines: 84
Approved: news@gmane.org
Message-ID: <4a0b0541-75c5-440f-b4f3-67a0ac352dbd@isocpp.org>
References: <d51e20f7-665e-49f7-a3e8-caed3660563f@isocpp.org>
 <2cf9fd32-eb30-432d-ac55-e18885006c8e@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_6209_863209.1378491945730"
X-Trace: ger.gmane.org 1378491945 22913 80.91.229.3 (6 Sep 2013 18:25:45 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Fri, 6 Sep 2013 18:25:45 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCXLLRHD7IDRBKV4VCIQKGQEUCCJTMI@isocpp.org Fri Sep 06 20:25:48 2013
Return-path: <std-proposals+bncBCXLLRHD7IDRBKV4VCIQKGQEUCCJTMI@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+bncBCXLLRHD7IDRBKV4VCIQKGQEUCCJTMI@isocpp.org>)
	id 1VI0j5-0006dy-Hd
	for gclcip-std-proposals@m.gmane.org; Fri, 06 Sep 2013 20:25:47 +0200
Original-Received: by mail-qc0-f197.google.com with SMTP id r5sf3847074qcx.0
        for <gclcip-std-proposals@m.gmane.org>; Fri, 06 Sep 2013 11:25:46 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        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=ZaB+zpAB9Jihe+haczeN/dTwaeF9ChXPMeSgfrnrb2w=;
        b=lYv1vmGgab2IuNY3vfqVzEpPfKJNxZi5x5+Rfo9XdK+R5yB43iPdm2qeP3wxZbJ/wG
         NlFnQsVFkaCLGxBO3hhJjwbjLdBSFL1xT0yQeY3Z53H6NivKdJzBKSKUdt8BLSGuvvMi
         pl0miqyAtKm273wuwHW/1YBM/aOn1sYL+OXMnOQcwxdgUg3iF78VRDVf9c3WtQTo4myk
         2E7TWXbIamYbmdjK3AdukEnVhuzdy6/IkkqCL/459tgT4Q17W3J77wzKL3ja+c5I5dBn
         sZIXAGAe4lc5H2fo4rd2ir2yIwLs9uvszlNfUihrb/q4YYd7zwna+XsJYlBryrieyRY7
         XnDQ==
X-Received: by 10.236.161.137 with SMTP id w9mr1212038yhk.49.1378491946596;
        Fri, 06 Sep 2013 11:25:46 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.49.6.73 with SMTP id y9ls1042339qey.60.gmail; Fri, 06 Sep 2013
 11:25:46 -0700 (PDT)
X-Received: by 10.49.129.65 with SMTP id nu1mr2658qeb.41.1378491946045;
        Fri, 06 Sep 2013 11:25:46 -0700 (PDT)
In-Reply-To: <2cf9fd32-eb30-432d-ac55-e18885006c8e@isocpp.org>
X-Original-Sender: vlad.moscow@mail.ru
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:6191
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/6191>

------=_Part_6209_863209.1378491945730
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

It will not be enough because std:;forward_list has no such member=20
functions as push_back() and back used in the realization of std::stack.
=20

=D0=D1=D4=CE=C9=C3=C1, 6 =D3=C5=CE=D4=D1=C2=D2=D1 2013 =C7., 22:17:47 UTC+4=
 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D8 Sean Middleditch=20
=CE=C1=D0=C9=D3=C1=CC:

> Instead of a single specialization, would it not be better to just make=
=20
> size() only enabled for wrapped types which have a size() using some=20
> enable_if logic?
>
> On Friday, September 6, 2013 10:37:38 AM UTC-7, Vlad from Moscow wrote:
>>
>> I would like to propose to include specialization of std::stack for=20
>> std::forward_list.=20
>> =20
>> In fact std::forward_list has already all characteristics of a stack.=20
>> There will be only one difference compared with the primary class=20
>> std::stack:  the specialization will not contain member function size()=
=20
>> because std::forward_list has no such member.
>> =20
>> What will you say?
>>
>

--=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_6209_863209.1378491945730
Content-Type: text/html; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>It will not be enough because std:;forward_list has n=
o such member functions as push_back() and back used in the realization of =
std::stack.</div><div>&nbsp;</div><div><br>=D0=D1=D4=CE=C9=C3=C1, 6 =D3=C5=
=CE=D4=D1=C2=D2=D1 2013&nbsp;=C7., 22:17:47 UTC+4 =D0=CF=CC=D8=DA=CF=D7=C1=
=D4=C5=CC=D8 Sean Middleditch =CE=C1=D0=C9=D3=C1=CC:</div><blockquote class=
=3D"gmail_quote" style=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; bor=
der-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-sty=
le: solid;"><div dir=3D"ltr">Instead of a single specialization, would it n=
ot be better to just make size() only enabled for wrapped types which have =
a size() using some enable_if logic?<br><br>On Friday, September 6, 2013 10=
:37:38 AM UTC-7, Vlad from Moscow wrote:<blockquote class=3D"gmail_quote" s=
tyle=3D"margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rg=
b(204, 204, 204); border-left-width: 1px; border-left-style: solid;"><div d=
ir=3D"ltr"><div>I would like to propose to include specialization of std::s=
tack for std::forward_list. </div><div>&nbsp;</div><div>In fact std::forwar=
d_list has already all characteristics of a stack. There will be only one d=
ifference compared with the primary class std::stack:&nbsp; the specializat=
ion will not contain member function size() because std::forward_list has n=
o such member.</div><div>&nbsp;</div><div>What will you say?</div></div></b=
lockquote></div></blockquote></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_6209_863209.1378491945730--

.
