Advertisement
Membership
Login
ACCU Buttons
Search in Book Reviews
Search is a simple string search in either book title or book author. The full text search is a search of the text of the review.
One of the problems is not what is in the book, but what is left out. For example, the text mentions that for class vector, the relational operators (==, !=,<,<=,> and>=) are defined, but I could find no explanation of their semantics. Also, in the same chapter, there is a short explanation of the vector<bool> specialisation, with no mention of the fact that it does not meet the requirements for a standard container (basically because the reference member is a 'smart reference' rather that a true reference to a bool and does not return an lvalue). This can lead to surprises when using vector<bool> in conjunction with certain algorithms, where it is assumed that the reference member will return an lvalue.
In addition to this, there are occurrences of incorrect code with respect to the C++ standard (note that the copyright date is 1999). For example, the quoted standard class iterator_traits (page 293) will not compile with a standard conforming compiler (the keyword typename is required, prefixing the qualified names dependent on the template parameter Itr).
If that's not enough, there are some practices used in the sample code that should not be imitated. For example, the failure to make accessor functions const and the assumption that all character sets are ASCII (with expressions such as 'A' + i). Further, I found the coding style untidy and hard to follow, especially considering the simple nature of most of the examples.
Therefore, if you want an STL book, have a look through the reviews on the web site, where you will find books that do a better job.