Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TList implementation for Visual C++

Status
Not open for further replies.

funxav

Programmer
Jun 13, 2003
15
FR
TList is a component of Borland C++ Builder that is wonderful:
it's like the STL class list , excepted the fact that you can add any variable that has at most 4 bytes (Its elements are considered like void *).
Its main inconvenient is that it is adapted only for storage of objects which have a size fewer than 4 bytes(like int, short,T*,byte,char,...)

I'm searching for a class like the generic TList class, which use the STL class std::list , and which contains the same methods than the TList class.
If someone knows if this kind of implementation have been done ...

Thank for reading...




 
Since no one has answered your previous question on this subject it would appear that no one here has any knowledge of such a collection class. It does contradict modern programming philosophy held by many that a type safe collection is preferable to a non-typed collection, so I don’t find that surprising.

Java collection classes are all non-typed and that is a major source of headache in Java development today. There has been an effort to introduce generics in Java for some time now. Perhaps 1.5 will have it.

Have you searched on Google for what you are looking for?
Have you considered building your own class?
Are you sure the Borland library will not work in VC++?

I would suggest that you look into using type safe collections for your solution.


-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top