220 7687 <10903c35-8fad-43a0-87e3-6cf2455f1cf1@isocpp.org> article
Path: news.gmane.org!not-for-mail
From: euloanty@live.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Could we remove the size() method in the std::list<T>?
Date: Mon, 11 Nov 2013 02:41:35 -0800 (PST)
Lines: 82
Approved: news@gmane.org
Message-ID: <10903c35-8fad-43a0-87e3-6cf2455f1cf1@isocpp.org>
References: <9be1f793-a061-4193-8a91-eedc81fa703e@isocpp.org>
 <88d5dee3-143a-4e8c-9682-6ef597450ffe@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_1880_28669184.1384166495503"
X-Trace: ger.gmane.org 1384166496 24383 80.91.229.3 (11 Nov 2013 10:41:36 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Mon, 11 Nov 2013 10:41:36 +0000 (UTC)
Cc: euloanty@live.com, euloanty@live.com
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDPYX6PYRQNBBYHIQKKAKGQEWE2JQ2A@isocpp.org Mon Nov 11 11:41:42 2013
Return-path: <std-proposals+bncBDPYX6PYRQNBBYHIQKKAKGQEWE2JQ2A@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vb0-f70.google.com ([209.85.212.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDPYX6PYRQNBBYHIQKKAKGQEWE2JQ2A@isocpp.org>)
	id 1Vfow6-0007Uf-64
	for gclcip-std-proposals@m.gmane.org; Mon, 11 Nov 2013 11:41:38 +0100
Original-Received: by mail-vb0-f70.google.com with SMTP id q4sf2088626vbe.1
        for <gclcip-std-proposals@m.gmane.org>; Mon, 11 Nov 2013 02:41:37 -0800 (PST)
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:cc: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=lg4OtzFOGsISiSr8zhskeMHvKKmTaNCZYrWFiM24iYo=;
        b=aPJM18QmFT4y3DMQpkIa1FB1Y5xjmFw3DihEFdQAIgApAr5jNltPsqPu+TWUnZRNK7
         0Pzlqlqze76ZaMcCK57GGWtXUfXanyhBRbyPDVbn+Qjayff7ffe2UYHwdfsMaq/My339
         xmOKAwJglanErP3VwCx8sfjetcsZyirNRC9ErQ6pOwJqPSCg94srJ2Dfmfj6S8jazJxc
         MFAY+loyuFiUwP9p+kAiEjnxiSlf1/U8JUY3qhAe1iZZF6fV1aHqizXgRWznHxj5D2yh
         D9KTX1RYO4CjKKzfKLYqjFqmafguzmp5Nk5mVNUgI8NjPvj40h3Lk42fv+kWUwamROvG
         ANVw==
X-Gm-Message-State: ALoCoQm4LG5VKwOklEWRcIduPZslVXkm7tSNdSn2A5qQYjo2eCz2xBZvyG5npF4BMiniqPLta4+y
X-Received: by 10.236.147.18 with SMTP id s18mr210093yhj.28.1384166497342;
        Mon, 11 Nov 2013 02:41:37 -0800 (PST)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.50.29.19 with SMTP id f19ls2107320igh.4.canary; Mon, 11 Nov
 2013 02:41:36 -0800 (PST)
X-Received: by 10.50.239.132 with SMTP id vs4mr268098igc.4.1384166496790;
        Mon, 11 Nov 2013 02:41:36 -0800 (PST)
In-Reply-To: <88d5dee3-143a-4e8c-9682-6ef597450ffe@isocpp.org>
X-Original-Sender: euloanty@live.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:7687
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/7687>

------=_Part_1880_28669184.1384166495503
Content-Type: text/plain; charset=ISO-8859-1




> listsize+=std::difference(list2.begin()+3,list2.end());
>
> list.splice(list2.begin()+3,list2.end()); // this operation is O(1), it is 
> very fast.
>
>  
>

I am sorry that that is wrong.
 
This is right.......:

listsize+=std::difference(it,list2.end());

list.splice(it,list2.end()); // this operation is O(1), it is very fast.

-- 

--- 
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_1880_28669184.1384166495503
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br><blockquote class=3D"gmail_quote" style=3D"margin:=
 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204=
); border-left-width: 1px; border-left-style: solid;"><div dir=3D"ltr"><p a=
lign=3D"left" class=3D"MsoNormal" style=3D"line-height: 13.5pt; text-indent=
: 4.75pt;"><br></p><p align=3D"left" class=3D"MsoNormal" style=3D"line-heig=
ht: 13.5pt; margin-left: 5.25pt;"><span lang=3D"EN-US" style=3D"padding: 0c=
m; border: 1pt windowtext; border-image: none; font-family: Arial,sans-seri=
f; font-size: 9.5pt;">listsize+=3Dstd::difference(<wbr>list2.begin()+3,list=
2.end());</span><span lang=3D"EN-US" style=3D"font-family: Arial,sans-serif=
; font-size: 9.5pt;"></span></p><p align=3D"left" class=3D"MsoNormal" style=
=3D"line-height: 13.5pt; text-indent: 4.75pt;"><span lang=3D"EN-US" style=
=3D"padding: 0cm; border: 1pt windowtext; border-image: none; font-family: =
Arial,sans-serif; font-size: 9.5pt;">list.splice(list2.begin()+3,<wbr>list2=
..end());
// this operation is O(1), it is very fast.</span><span lang=3D"EN-US" styl=
e=3D"font-family: Arial,sans-serif; font-size: 9.5pt;"></span></p><p align=
=3D"left" class=3D"MsoNormal" style=3D"line-height: 13.5pt; margin-left: 5.=
25pt;"><span lang=3D"EN-US" style=3D"padding: 0cm; border: 1pt windowtext; =
border-image: none; font-family: Arial,sans-serif; font-size: 9.5pt;">&nbsp=
;</span></p></div></blockquote><div><br></div><div>I&nbsp;am sorry that tha=
t is wrong.</div><div>&nbsp;</div><div>This is right.......:</div><p align=
=3D"left" class=3D"MsoNormal" style=3D"line-height: 13.5pt; margin-left: 5.=
25pt;"><span lang=3D"EN-US" style=3D"padding: 0cm; border: 1pt windowtext; =
border-image: none; font-family: Arial,sans-serif; font-size: 9.5pt;">lists=
ize+=3Dstd::difference(it,list2.end());</span><span lang=3D"EN-US" style=3D=
"font-family: Arial,sans-serif; font-size: 9.5pt;"></span></p><p align=3D"l=
eft" class=3D"MsoNormal" style=3D"line-height: 13.5pt; text-indent: 4.75pt;=
"><span lang=3D"EN-US" style=3D"padding: 0cm; border: 1pt windowtext; borde=
r-image: none; font-family: Arial,sans-serif; font-size: 9.5pt;">list.splic=
e(it,<wbr>list2.end()); // this operation is O(1), it is very fast.</span><=
/p><div><br></div></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_1880_28669184.1384166495503--

.
