This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: c++ STL change?
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: "m." <michal017 at centrum dot sk>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: 10 Nov 2003 15:38:39 +0100
- Subject: Re: c++ STL change?
- References: <20031110150448.4f68f76d.michal017@centrum.sk>
"m." <michal017@centrum.sk> writes:
> I am using STL classes with gcc and I noticed a change between 3.3.2 and
> 3.2.2 versions in the std::map class implementation.
>
> The typename for value type in map differs:
> 3.3.2 = mapped_type
> 3.2.2 = data_type
> (as seen in c++/3.x.x/bits/stl_map.h file).
>
> I am using STL manual from http://www.sgi.com/tech/stl/Map.html which
> says it should be data_type as it is in the 3.2.2 version.
> Can anyone explain this?
The C++ standard uses mapped_type; the SGI STL predates the standard.
--
Falk