From -8778031327259424095
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,9384bfc667402a91
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2004-03-15 10:36:41 PST
Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: bop@gmb.dk ("Bo Persson")
Newsgroups: comp.std.c++
Subject: Re: Vector should be used by default?
Date: Mon, 15 Mar 2004 18:36:40 +0000 (UTC)
Lines: 33
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <c2nkin$1va52t$1@ID-206811.news.uni-berlin.de>
References: <c2lq2i$m3m$1@news.kreonet.re.kr>
X-Trace: mail2news.demon.co.uk 1079375800 20841 10.0.0.1 (15 Mar 2004 18:36:40 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 15 Mar 2004 18:36:40 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.12)
	id 1B2wx4-0005Q0-00
	for mail2news@news.news.demon.net; Mon, 15 Mar 2004 18:36:39 +0000
X-Received: from mulga.cs.mu.OZ.AU (localhost [127.0.0.1]) by mulga.cs.mu.OZ.AU with ESMTP
	id i2FIaXi2005804; Tue, 16 Mar 2004 05:36:33 +1100 (EST)
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i2FIaWW3005795;
	Tue, 16 Mar 2004 05:36:32 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ucar.edu
X-Newsgroups: comp.std.c++
X-Orig-NNTP-Posting-Host: c-e1f371d5.443-1-64736c14.cust.bredbandsbolaget.se (213.113.243.225)
X-Orig-X-Trace: news.uni-berlin.de 1078941079 66393181 I 213.113.243.225 ([206811])
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=0.7 required=5.2 tests=PRIORITY_NO_NAME autolearn=no 
	version=2.60-mulga_r1
Xref: archiver1.google.com comp.std.c++:1332


""Kim, Seungtai"" <stkim@yujinrobot.com> skrev i meddelandet
news:c2lq2i$m3m$1@news.kreonet.re.kr...
> What is the intent of next statement? Coding guide? Encorage the usage of
vector?
>
> I can't catch the exact meaning of it.
>
>
>     23.1.1/2
>     ...vector is the type of sequence that should be used by default....
>
>
> If I use the deque or list when it can be substituted by vector,
> it is to be ill-formed program? Or is there any other criterion?
>

It's just a recommendation, if you don't know what container to use, use a
vector. It works fine in most cases.

If you have specific requirements that fit a deque or a list or a map
better, please use that. If not, try a vector.


Bo Persson


---
[ 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                       ]



