Topic: Defect Report: Missing "Returns" clause in std::equal_range
Author: kprateek88@yahoo.com (Prateek R Karandikar)
Date: Wed, 30 Jun 2004 19:00:25 +0000 (UTC) Raw View
petebecker@acm.org (Pete Becker) wrote in message news:<40E1C0E1.72997306@acm.org>...
> Prateek R Karandikar wrote:
> >
> > 25.3.3.3 equal_range [lib.equal.range]
> > There is no "Returns:" clause for std::equal_range, which returns non-void.
> >
>
> There is in mine. <g> This was fixed in the 2003 revision of the
> standard.
>
My copy of the Standard says on the cover page : INTERNATIONAL
STANDARD
ISO/IEC
14882
Second edition
2003-10-15
On Page 1 it proclaims :
INTERNATIONAL STANDARD ISO/IEC ISO/IEC 14882:2003(E)
I presume this is the 2003 revision. However, section 25.3.3.3, apart
from the 2 declarations of equal_range, has only the following 3
clauses:
1 Requires: Type T is LessThanComparable (20.1.2).
2 Effects: Finds the largest subrange [i, j) such that the value can
be inserted at any iterator k in it without violating the ordering. k
satisfies the corresponding conditions: !(*k < value) && !(value < *k)
or comp(*k, value) == false && comp(value, *k) == false.
3 Complexity: At most 2 * log(last - first) + 1 comparisons.
-- --
Abstraction is selective ignorance.
-Andrew Koenig
-- --
---
[ 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 ]
Author: Pete Becker <petebecker@acm.org>
Date: Thu, 1 Jul 2004 12:15:39 CST Raw View
Alberto Barbati wrote:
>
> Pete Becker wrote:
>
> > Prateek R Karandikar wrote:
> >
> >>25.3.3.3 equal_range [lib.equal.range]
> >>There is no "Returns:" clause for std::equal_range, which returns non-void.
> >>
> >
> >
> > There is in mine. <g> This was fixed in the 2003 revision of the
> > standard.
> >
>
> I have the pdf version bought from the ANSI store and Wiley's printed
> version of the 2003 revision of the standard. The "Returns:" clause is
> indeed missing from both.
>
> You are probably referring to LWG issue #270
>
> http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#270
>
> which, unfortunately, is in WP status, and so it has not been included
> in the 2003 revision, but it will be in the future.
>
Yup, sorry. I was looking at the internal working draft.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
---
[ 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 ]
Author: Pete Becker <petebecker@acm.org>
Date: 1 Jul 2004 20:15:01 GMT Raw View
Prateek R Karandikar wrote:
>
> petebecker@acm.org (Pete Becker) wrote in message news:<40E1C0E1.72997306@acm.org>...
> > Prateek R Karandikar wrote:
> > >
> > > 25.3.3.3 equal_range [lib.equal.range]
> > > There is no "Returns:" clause for std::equal_range, which returns non-void.
> > >
> >
> > There is in mine. <g> This was fixed in the 2003 revision of the
> > standard.
> >
>
> My copy of the Standard says on the cover page : INTERNATIONAL
> STANDARD
> ISO/IEC
> 14882
> Second edition
> 2003-10-15
> On Page 1 it proclaims :
> INTERNATIONAL STANDARD ISO/IEC ISO/IEC 14882:2003(E)
>
> I presume this is the 2003 revision.
Yes, it is. I was looking at the wrong one. It's fixed in the current
working draft.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
---
[ 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 ]
Author: "Prateek R Karandikar" <kprateek88@yahoo.com>
Date: 1 Jul 2004 20:15:14 GMT Raw View
> I take the opportunity to encourage the OP to check the issue list
more
> carefully before posting a defect report.
Sorry about that. Before posting, I went to
http://www.open-std.org/jtc1/sc22/wg21/. I followed the link to "C++
Standard Library Issues List (Revision 28)". I did a text search for
"equal_range". All I got was "equal_range has unimplementable runtime
complexity". Since there was no separate link for a DR list on the
JTC1/SC22/WG21 - C++ homepage, I assumed issues included defects.
Unfortunately, I didn't notice the link "Library Defect Reports List"
on the Issues page. Sorry again.
-- --
Abstraction is selective ignorance.
-Andrew Koenig
-- --
---
[ 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 ]
Author: kprateek88@yahoo.com (Prateek R Karandikar)
Date: Tue, 29 Jun 2004 18:50:54 +0000 (UTC) Raw View
25.3.3.3 equal_range [lib.equal.range]
There is no "Returns:" clause for std::equal_range, which returns non-void.
[ 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 ]
Author: petebecker@acm.org (Pete Becker)
Date: Tue, 29 Jun 2004 21:44:09 +0000 (UTC) Raw View
Prateek R Karandikar wrote:
>
> 25.3.3.3 equal_range [lib.equal.range]
> There is no "Returns:" clause for std::equal_range, which returns non-void.
>
There is in mine. <g> This was fixed in the 2003 revision of the
standard.
--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
---
[ 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 ]
Author: AlbertoBarbati@libero.it (Alberto Barbati)
Date: Wed, 30 Jun 2004 18:48:47 +0000 (UTC) Raw View
Pete Becker wrote:
> Prateek R Karandikar wrote:
>
>>25.3.3.3 equal_range [lib.equal.range]
>>There is no "Returns:" clause for std::equal_range, which returns non-void.
>>
>
>
> There is in mine. <g> This was fixed in the 2003 revision of the
> standard.
>
I have the pdf version bought from the ANSI store and Wiley's printed
version of the 2003 revision of the standard. The "Returns:" clause is
indeed missing from both.
You are probably referring to LWG issue #270
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#270
which, unfortunately, is in WP status, and so it has not been included
in the 2003 revision, but it will be in the future.
I take the opportunity to encourage the OP to check the issue list more
carefully before posting a defect report.
Alberto
---
[ 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 ]