From -7654673263605697581
X-Google-Thread: f78e5,e4aa14519cca09ff
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII
Path: g2news1.google.com!news4.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.freenet.de!ecngs!feeder2.ecngs.de!newsfeed.stueberl.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: dsp@bdal.de (=?ISO-8859-15?Q?=22Daniel_Kr=FCgler_=28ne_Spangenberg=29=22?=)
Newsgroups: comp.std.c++
Subject: Re: My nitpicks on n1774
Date: Wed, 11 May 2005 07:24:05 GMT
Lines: 34
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <4281b1b7$0$301$4d4ebb8e@businessnews.de.uu.net>
References: <1gvl3nc.1btw8bq15u28exN%thedl0-usenet1@yahoo.com> <1114785595.237226.56270@g14g2000cwa.googlegroups.com> <87vf63z31d.fsf@Astalo.kon.iki.fi> <42788af6$0$297$4d4ebb8e@businessnews.de.uu.net> <1115628192.099176.167260@f14g2000cwb.googlegroups.com> <87wtq74ops.fsf@Astalo.kon.iki.fi>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.demon.co.uk 1115796256 27783 158.152.254.254 (11 May 2005 07:24:16 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 11 May 2005 07:24:16 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
X-MIME-Autoconverted: from 8bit to quoted-printable by mulga.cs.mu.OZ.AU id j4B7ODEH020467
X-Accept-Language: de-de, de
X-Virus-Scanned: by amavisd-new at cs.mu.OZ.AU
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id j4B7O5At020434;
	Wed, 11 May 2005 17:24:05 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:4691

Hello Kalle Olavi Niemitalo,

Kalle Olavi Niemitalo schrieb:

>Indeed; I thought it would be more efficient, especially as
>(unlike with input iterators) the dynamic memory for the integer
>can be allocated immediately at the beginning, instead of growing
>it little by little.
>
I think, this implementation detail should not be presented to the=20
interface user of std::integer.

Consider, that a reasonable allocation strategy of the internal memory=20
of integer (similar to that
of std::vector) can already ensure performant growing.

>On the other hand, the constructor could allow all input
>iterators but then choose the best applicable algorithm at
>compile time based on std::iterator_traits<T>::iterator_category.
>I suppose that would be better.
>
Yes, that is a good idea.

Greetings from Bremen,

Daniel Kr=FCgler


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



