Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-06

std::map equivalent?

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

Hi,

Is there a std::map equivalent for free pascal?

Thanks,
Shannon

Torsten Bonde Christiansen
to Xiangrong Fang
Xiangrong Fang wrote 6 lines
Hi, Is there a std::map equivalent for free pascal? Thanks, Shannon

If you wish to use generics you can try TFPGMap from the unit fgl.

It does about the same.

Kind regards,
Torsten Bonde Christiansen.

Sven Barth
"Alexander Shishkin" wrote 19 lines
12.06.2012 17:38, Xiangrong Fang пишет: > > Hi, > > Is there a std::map equivalent for free pascal? > > Thanks, > Shannon > > -- > > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > gmap.TMap from fcl-stl.

But be careful with the types you use. As far as I remember the fcl-stl is not completely compatible with managed types like strings or records containing such types (TFPGList has no problem with them).

Regards,
Sven