From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,243dc2fb696a49cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada Popularity: Comparison of Ada/Charles with C++ STL (and Perl) Date: Sat, 25 Sep 2004 16:09:49 +0200 Organization: AdaCL Message-ID: <9456086.3gn2f8uQnB@linux1.krischik.com> References: <11b4d.3849$d5.30042@newsb.telia.net> <1096033431.100639@master.nyc.kbcfp.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1096127777 03 18875 pnEjXxavsK-iTsm 040925 15:56:17 X-Complaints-To: usenet-abuse@t-online.de X-ID: E2BLEQZ6weQzOkn9VloZkfaZvsmS5lI4hycNPbxIc6wnjvo1ifhkc- User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:4178 Date: 2004-09-25T16:09:49+02:00 List-Id: Hyman Rosen wrote: > Matthew Heaney wrote: >> Note, however, that the index operator isn't completely benign. In >> fact, the index operator for map gets its own entry in Effective STL. > > One of the really annoying features of this operator is that due to > its behavior of creating the element if not already present, there is > no const version of the operator, and so you cannot use the natural > indexing syntax on a const map. But the other option is just as bad: the operator [] from std::vector does not create new objects, hence you can't use operator [] to fill a vector. I just change from std::vector <...> to a std::map for that very reason. So more I work with the STL so more I bloody hate it. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com