STL : Favorite container
-
What's your favorite STL container class? And why? Nish
I'll be a pedant and say 'the right one for the particular job I'm doing'.... Overall, though - vector, probably. I must implement a 'sorted vector as std::map replacement' sometime, to use instead of std::map/hash_map... Stuart Dootson 'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
-
What's your favorite STL container class? And why? Nish
Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:
-
Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:
CP Visitor wrote: Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? Nope.
-
Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:
CP Visitor wrote: And isn't it time to abandon the STL hype? Nope. Specially with STL.NET coming out in Whidbey :-)
-
CP Visitor wrote: And isn't it time to abandon the STL hype? Nope. Specially with STL.NET coming out in Whidbey :-)
Nishant Sivakumar wrote: Nope. Specially with STL.NET coming out in Whidbey You mean C++/CLI + STL? Goodness gracious! X| Time to switch to C#/Mono/Java! :^)
-
peterchen wrote: tree, for it is the only one I wish I would have Is there a container named tree?
no there isn't that's why it's preferred :) I don't really like the STL container design, but they are "roughly ok". Yet, there's a tree I am missing frequently. So it is my favortie container because it doesn't exist and thus doesn#t have the drawbacks of the others.
Pandoras Gift #44: Hope. The one that keeps you on suffering.
aber.. "Wie gesagt, der Scheiss is' Therapie"
boost your code || Fold With Us! || sighist | doxygen -
Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:
-
What's your favorite STL container class? And why? Nish
-
CP Visitor wrote: And isn't it time to abandon the STL hype? I wouldn't call it hype. Once you get by the syntax, it's a powerhouse! I would never abondon it. ~Nitron.
ññòòïðïðB A
startI found that once you start using STL you don't want to go back to C++ that doesn't use it. There is an initial learning-curve but once you get some familiarity it actually makes for easier code. There will be an STL-like library (PowerCollections) available for C# 2, which I expect will be similarly productive. Kevin
-
What's your favorite STL container class? And why? Nish
map and list. John