🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2397

Re: Q: Items in associative containers need == and < ?

#2397
From: Ajay Kamdar
Date: Thu, 02 Nov 1995 16:06
29 lines
1836 bytes
In article <477o7e$5pd@info.uci.kun.nl>,
Marian Hellema  <marian@atcmp.nl> wrote:
>
>I am using ObjectSpace's STL<Toolkit>. 
>The ObjectSpace documentation states:
>"All the items that are stored in associative containers must be
>comparable using == and <"
>
>I have not been able to find a confirmation for this rule in the
>standard working paper. Can someone clear this up for me?

My reading of 23.1.3 of the April WP indicated that operator == should
not be required by the associative containers. I havent' checked the
September WP, but I don't expect this non-requirement to have changed.

When I submitted a bug report to ObjectSpace against version 1.1.0 of
the library, I was told that they simply hadn't caught up with the
WP yet. The document accompanying version 1.2 of the library
also specifies the same requirement. Looks like they still haven't
caught up with the WP. One of the few annoying inconsistencies in an
otherwise very good implementation of STL.

-- 
Ajay Kamdar        |    Email: ajay@lehman.com    |    Standard Disclaimer 
Lehman Brothers    |    Phone: (201) 524-5048     |

[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <47ai5s$54b@jabba.lehman.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <477o7e$5pd@info.uci.kun.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: ajay@lehman.com (Ajay Kamdar)
Newsgroups: comp.std.c++
Subject: Re: Q: Items in associative containers need == and < ?
Date: 2 Nov 1995 16:06:21 GMT
Organization: Lehman Brothers, Inc.
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <47ai5s$54b@jabba.lehman.com>
References: <477o7e$5pd@info.uci.kun.nl>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
Content-Length: 1108
Originator: clamage@taumet