does C# supports STL?if not how can i use vector?

  • Thread starter Thread starter bill
  • Start date Start date
Hello Bill,

STL, including templates, are not supported in C# as of yet.
Microsoft did say that it will either be scheduled for release in a service
pack for Visual Studio 2003
or the next release of Visual Studio. But Microsoft hasn't completely made
up its mind yet on whether or not to support it at all. If a majority of
developers complain enough, Microsoft will support it.

You can use STL vectors in NON-managed C++ code.
Just stick with VC++ for now.
 
Hey Bill,
check out the System.Collections namespace. Everything is in there that you
need. For the real STL magic, you'll have to wait until the next release
when generics is included in the C# language.

Greetz,
-- Rob.
 
bill said:
does C# supports STL?if not how can i use vector?

The System.Collections.ArrayList class should fill most of your needs. STL
is a very C++ specific library, that has to take into account all the warts
of C++, and I doubt it will ever be supported as such in C#, generics or no
generics.
 
Back
Top