From 6825277407576888224
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f78e5,396a971a96f93ef8
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-02-24 14:44:25 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!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: cxl@volny.cz ("Mirek Fidler")
Newsgroups: comp.std.c++
Subject: Re: random access iterator and copy-constructibility
Date: Mon, 24 Feb 2003 22:44:24 +0000 (UTC)
Organization: Czech On Line, a. s.
Lines: 26
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <b3e5fh$1dl$1@news.vol.cz>
References: <b3d5ec$21mr$1@news.vol.cz> <yu99vfz9ifm1.fsf@europa.research.att.com>
X-Trace: mail2news.demon.co.uk 1046126664 390 10.0.0.1 (24 Feb 2003 22:44:24 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Mon, 24 Feb 2003 22:44:24 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18nRKh-000067-00
	for mail2news@news.news.demon.net; Mon, 24 Feb 2003 22:44:23 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id JAA04645; Tue, 25 Feb 2003 09:44:19 +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++@ncar.ucar.edu
X-Newsgroups: comp.std.c++
X-NNTP-Posting-Date: Mon, 24 Feb 2003 22:14:09 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Spam-Status: No, hits=-4.5 required=5.0
	tests=INVALID_MSGID,NOSPAM_INC,PRIORITY_NO_NAME,
	      QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01
	version=2.41
Xref: archiver1.google.com comp.std.c++:18058


"Andrew Koenig" <ark@research.att.com> p�se v diskusn�m pr�spevku
news:yu99vfz9ifm1.fsf@europa.research.att.com...
> Mirek> Is there anywhere in standard place that states that type
pointed to by
> Mirek> random access iterator must have copy-constructor ?
>
> I can't think of any such requirement offhand.  Why do you think it
> would be useful?

   I was studying 'sort' implementation in several STL implementation
and it seems that each of them is using copy-constructor at some point
(BTW, it is avoidable, but not using copy contructor harms performance).
But so far I have not found requirement for copy-constructor - not in
iterator requirements, not in general algorithms requirements, not in
sort requirements. I think I must have overlooked it...

Mirek


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



