Home » Community » Forums » » The C++ Standard Library Part 1
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic

Page:   1 2 »»

 Last Thread Next Thread 
 The C++ Standard Library Part 1
Post Reply 
An excellent article.

 User Rating: 2027   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

I would also highly recommend Josuttis' book: The Cplusplus Standard Library

ISBN: 0201379260

 User Rating: 1015   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by jrhass
I would also highly recommend Josuttis' book: The Cplusplus Standard Library

ISBN: 0201379260
It's recommended and linked at the end of the article.

 User Rating: 2088   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Wow. Written by the SiCrane with a thumbs up by the Fruny!

I haven't gone through it yet, I just noticed the title of this thread as "The C Standard Library" and wondered who was writing about C, but it turns out its C++

 User Rating: 1517   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

And to think that yesterday I event hinted that it should get published soon in my journal... man, i must be like a prophet or something!

Now to get parts 2 - 42 up!

 User Rating: 1912   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Quote:
Original post by Fruny
An excellent article.
I concur!

Jack


Jack Hoxley [ Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]

 User Rating: 1947   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Quote:
Original post by jollyjeffers
Quote:
Original post by Fruny
An excellent article.
I concur!

Jack


Agreed. Good Job.

 User Rating: 1920   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Good read, you should write a book since that was a lot easier to read then a lot of books ive had to read.

 User Rating: 1009   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Excellent article, glad to see you have tackled this dificult topic!

 User Rating: 1743   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

as the rest have said, excellent article. It's about time someone made an article like this. Not enough people know about this stuff...

Now if only I could get the c/c++ teachers in the university to actually read stuff like this so that they stop seeming so un-informed.

Great work SiCrane.


:: Blog
:: Site

 User Rating: 1531   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Great article! I am glad that finally someone took the time to discuss templates along with the STL. Every article I would read, none would ever discuss templates and expect you to already know it. I am glad someone took the time to do this!

 User Rating: 1068   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Good article! I noticed one thing though. When declaring templates, isn't there a slight difference between declaring types with 'typename' and 'class'? I remember researching this a while back and finding someone that said there was a slight difference, but I forget what it is. Maybe there was a difference in older versions of C++, so I'm probably talking about something obsolete.

 User Rating: 1299   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Quote:
Original post by okonomiyaki
Good article! I noticed one thing though. When declaring templates, isn't there a slight difference between declaring types with 'typename' and 'class'? I remember researching this a while back and finding someone that said there was a slight difference, but I forget what it is. Maybe there was a difference in older versions of C++, so I'm probably talking about something obsolete.


Please note footnote #6:
Quote:
Many people use the convention of using typename when the template argument can be any type including primitives, and using class when the template argument must be a class. An exception is that template-template parameters require the class keyword. However, template-template parameters are outside the scope of this article as the C++ Standard Library does not use them.


 User Rating: 1912   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

It is a pretty good article, but when I saw an article about the STL I assumed there would be some STL in the article... it is a good introduction to templates, namespaces and exceptions but there are so many books and tutorials on all that 'dry' C++ language stuff already...

However I look forward to the future articles. How deep will you be going - just collections, or things like for_each too, or all that plus the other stuff too?

 User Rating: 1295   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by d000hg
It is a pretty good article, but when I saw an article about the STL I assumed there would be some STL in the article... it is a good introduction to templates, namespaces and exceptions but there are so many books and tutorials on all that 'dry' C++ language stuff already...

Seeing as how it appears that 99.9999999999999999999999999...% of the people on these boards can't seem to figure out that 'dry' C++ language stuff, it was considered a good idea to have that 'dry' C++ language stuff introduced right off the bat.
Quote:
However I look forward to the future articles. How deep will you be going - just collections, or things like for_each too, or all that plus the other stuff too?

More than likely you'll see some pertaining to the algorithms and functional libraries as well.

 User Rating: 1912   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

High quality article. Nice!



"We confess our little faults to persuade people that we have no large ones." -Francois de La Rochefoucauld (1613 - 1680).

 User Rating: 1215   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

The article is extremely well done, and very informative. That being said, however, I do have a complaint about it being all on one page. Maybe breaking it up into multiple pages would help with the readability of the article.

 User Rating: 1115   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Quote:
Original post by Dorvo
The article is extremely well done, and very informative. That being said, however, I do have a complaint about it being all on one page. Maybe breaking it up into multiple pages would help with the readability of the article.

...
Check the front page link.

 User Rating: 1912   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Quote:
Original post by Washu
Quote:
Original post by Dorvo
The article is extremely well done, and very informative. That being said, however, I do have a complaint about it being all on one page. Maybe breaking it up into multiple pages would help with the readability of the article.

...
Check the front page link.


Ahh. Much better. I didn't come to the article through the front page link, so I didn't know there was a version that split it into pages.

 User Rating: 1115   |  Rate This User  Send Private MessageView ProfileView Journal Report this Post to a Moderator | Link

Nice article..

Maybe you can add sth to the swap-example - because stl-writers know
the actual inside of their implementation, they can do many
optimizations which would make a swap much more effective then
using a temp-variable to copy everything around (instead they
could just swap some pointers)...

 User Rating: 1237   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

been wating for an article this good for a while, props to SiCrane!


"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!"
-- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website


 User Rating: 1334   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Well written and very informative. Good work! If only every article on the internet was this helpful

 User Rating: 1129   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

I'm very glad to see this article. I have my own series of articles covering Modern C++ ( http://gpwiki.org/index.php/C_plus_plus:Modern_C_plus_plus ) -- including such things as containers, iterators, and algorithms (such as std::for_each) -- but I apparently set my prerequisites too high and am now adding appendicies to cover some of the basics.

Thanks for a very nice article to which I can send people for the basics before they go through mine :)

One point in particular: thanks for covering dependant names explicitly. Tons of people have no idea where they need typename.

Quote:
Original post by d000hg
It is a pretty good article, but when I saw an article about the STL I assumed there would be some STL in the article... it is a good introduction to templates, namespaces and exceptions but there are so many books and tutorials on all that 'dry' C++ language stuff already...

However I look forward to the future articles. How deep will you be going - just collections, or things like for_each too, or all that plus the other stuff too?

Just to point out, "Standard Template Library" is SGI's library, and not part of ISO C++. A large part of the Standard Library was inspired by the STL, but it is not STL.

Quote:
Original post by IFooBar
Now if only I could get the c/c++ teachers in the university to actually read stuff like this so that they stop seeming so un-informed.

Yeah, C++ is unfortunatly taught rather poorly, in the vast majority of cases.

[Edited by - me22 on May 23, 2006 8:54:47 PM]

 User Rating: 1082   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

Quote:
Original post by Washu
Quote:
Original post by d000hg
It is a pretty good article, but when I saw an article about the STL I assumed there would be some STL in the article... it is a good introduction to templates, namespaces and exceptions but there are so many books and tutorials on all that 'dry' C++ language stuff already...

Seeing as how it appears that 99.9999999999999999999999999...% of the people on these boards can't seem to figure out that 'dry' C++ language stuff, it was considered a good idea to have that 'dry' C++ language stuff introduced right off the bat.
Quote:
However I look forward to the future articles. How deep will you be going - just collections, or things like for_each too, or all that plus the other stuff too?

More than likely you'll see some pertaining to the algorithms and functional libraries as well.
Doesn't everyone have a C++ book? If they're too lazy to learn from a book I wonder if they'll really play with templates after this article. However you don't really need to understand templates to use the STL I suppose!

Anyway, an article which covers how to do A* or similar efficiently using STL might be a good inclusion?



 User Rating: 1295   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link
Page:   1 2 »»
All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: