* RE: c++ STL change?
@ 2003-11-11 18:13 lrtaylor
0 siblings, 0 replies; 4+ messages in thread
From: lrtaylor @ 2003-11-11 18:13 UTC (permalink / raw)
To: LAssinovsky, michal017, gcc-help
mapped_type is not "internal". It's a public property (so to speak) of
the map and can be used when declaring variables of the right type for
the map value. For example, if I have a map like this:
map<string, MyClass> myMap;
I can create a new object of type MyClass like this:
myMap::mapped_type myObj;
Also, just in case you do any work on Windows, MSVC++ 6.0 doesn't
support mapped_type...
Cheers,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Seems, you are using STL Port Manual.
I guess gcc uses another version.
And according to my experience any internal changes are subject
to change without any notice.
:(
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++ STL change?
2003-11-10 14:06 m.
@ 2003-11-10 14:38 ` Falk Hueffner
0 siblings, 0 replies; 4+ messages in thread
From: Falk Hueffner @ 2003-11-10 14:38 UTC (permalink / raw)
To: m.; +Cc: gcc-help
"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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: c++ STL change?
@ 2003-11-10 14:37 Lev Assinovsky
0 siblings, 0 replies; 4+ messages in thread
From: Lev Assinovsky @ 2003-11-10 14:37 UTC (permalink / raw)
To: m., gcc-help
Seems, you are using STL Port Manual.
I guess gcc uses another version.
And according to my experience any internal changes are subject
to change without any notice.
:(
----
Lev Assinovsky
Aelita Software Corporation
O&S InTrust Framework Division, Team Leader
ICQ# 165072909
> -----Original Message-----
> From: m. [mailto:michal017@centrum.sk]
> Sent: Monday, November 10, 2003 5:05 PM
> To: gcc-help
> Subject: c++ STL change?
>
>
> 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?
> Thanks..
> michal
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++ STL change?
@ 2003-11-10 14:06 m.
2003-11-10 14:38 ` Falk Hueffner
0 siblings, 1 reply; 4+ messages in thread
From: m. @ 2003-11-10 14:06 UTC (permalink / raw)
To: gcc-help
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?
Thanks..
michal
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-11 18:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11 18:13 c++ STL change? lrtaylor
-- strict thread matches above, loose matches on Subject: below --
2003-11-10 14:37 Lev Assinovsky
2003-11-10 14:06 m.
2003-11-10 14:38 ` Falk Hueffner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).