Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. STL : Favorite container

STL : Favorite container

Scheduled Pinned Locked Moved The Lounge
c++dockerquestion
14 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P peterchen

    tree, for it is the only one I wish I would have


    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

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #3

    peterchen wrote: tree, for it is the only one I wish I would have Is there a container named tree?

    P 1 Reply Last reply
    0
    • N Nish Nishant

      What's your favorite STL container class? And why? Nish

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #4

      set Elegant as the rest, but something i didn't already have. Also, SET are the initials of the author of one of my all-time favorite text editors.

      Firefox? CodeProject? GreaseMonkey? A better Life?

      1 Reply Last reply
      0
      • N Nish Nishant

        What's your favorite STL container class? And why? Nish

        S Offline
        S Offline
        Stuart Dootson
        wrote on last edited by
        #5

        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'

        1 Reply Last reply
        0
        • N Nish Nishant

          What's your favorite STL container class? And why? Nish

          C Offline
          C Offline
          CP Visitor
          wrote on last edited by
          #6

          Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:

          P N N 3 Replies Last reply
          0
          • C CP Visitor

            Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:

            P Offline
            P Offline
            Phil Martin
            wrote on last edited by
            #7

            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.

            1 Reply Last reply
            0
            • C CP Visitor

              Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #8

              CP Visitor wrote: And isn't it time to abandon the STL hype? Nope. Specially with STL.NET coming out in Whidbey :-)

              C 1 Reply Last reply
              0
              • N Nish Nishant

                CP Visitor wrote: And isn't it time to abandon the STL hype? Nope. Specially with STL.NET coming out in Whidbey :-)

                C Offline
                C Offline
                CP Visitor
                wrote on last edited by
                #9

                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! :^)

                1 Reply Last reply
                0
                • N Nish Nishant

                  peterchen wrote: tree, for it is the only one I wish I would have Is there a container named tree?

                  P Offline
                  P Offline
                  peterchen
                  wrote on last edited by
                  #10

                  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

                  1 Reply Last reply
                  0
                  • C CP Visitor

                    Nishant Sivakumar wrote: What's your favorite STL container class? And why? And isn't it time to abandon the STL hype? :suss:

                    N Offline
                    N Offline
                    Nitron
                    wrote on last edited by
                    #11

                    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
                    start

                    K 1 Reply Last reply
                    0
                    • N Nish Nishant

                      What's your favorite STL container class? And why? Nish

                      N Offline
                      N Offline
                      Nitron
                      wrote on last edited by
                      #12

                      vector[^] and deque[^] ;) ~Nitron.


                      ññòòïðïðB A
                      start

                      1 Reply Last reply
                      0
                      • N Nitron

                        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
                        start

                        K Offline
                        K Offline
                        Kevin McFarlane
                        wrote on last edited by
                        #13

                        I 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

                        1 Reply Last reply
                        0
                        • N Nish Nishant

                          What's your favorite STL container class? And why? Nish

                          J Offline
                          J Offline
                          John M Drescher
                          wrote on last edited by
                          #14

                          map and list. John

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups