c++ STL change?
Falk Hueffner
falk.hueffner@student.uni-tuebingen.de
Mon Nov 10 14:38:00 GMT 2003
"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
More information about the Gcc-help
mailing list