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

E

Eric Lam

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.
 
R

Rob Tillie

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.
 
A

Arild Fines

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top