This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++ STL change?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]