STL vs ATL

This is a discussion on STL vs ATL within the C++ Programming forums, part of the General Programming Boards category; I see that good portion of the "advanced" level books recommended here deal with STL, but almost none of them ...

  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    19

    STL vs ATL

    I see that good portion of the "advanced" level books recommended here deal with STL, but almost none of them were ATL (I take that ATL is easier to grasp then STL?). Is STL widely used even for today? What about for the people who do most of the Windows programming? I am asking because I've barely seen any STL codes at my work, most of the template library usage was done with ATL. I'd appreciate if you could give me some insights on how things are done in terms of the software libraries used in the industry these days.

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    STL is part of the C++ standard. This means that all standard compliant compilers support the STL in the same fashion.

    ATL is a library developed by Microsoft to facilitate COM programming. This means that you need to be programming for Windows to use it, and you probably need to be using Microsoft's compiler.

    I'd say that over 95% of the people who program in C++ use the STL in some way. The percentage of people who use the ATL is far, far less. The bottom line is that if your goal is to learn C++, then focus on the STL. Learn the ATL if you ever have any need to do COM programming in the future.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    19
    Ok I see. I appreciate that!

  4. #4
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,301
    Quote Originally Posted by donglee View Post
    I am asking because I've barely seen any STL codes at my work, most of the template library usage was done with ATL.
    Well using ATL is a smart move, but not using the SC++L is a bad move. They should use both.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Formatting Using STL
    By ChadJohnson in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2004, 04:52 PM
  2. im extreamly new help
    By rigo305 in forum C++ Programming
    Replies: 27
    Last Post: 04-23-2004, 11:22 PM
  3. STL or no STL
    By codec in forum C++ Programming
    Replies: 7
    Last Post: 04-12-2004, 02:36 PM
  4. Prime Number Generator... Help !?!!
    By Halo in forum C++ Programming
    Replies: 9
    Last Post: 10-20-2003, 07:26 PM
  5. include question
    By Wanted420 in forum C++ Programming
    Replies: 8
    Last Post: 10-17-2003, 03:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21