Download Using the STL: The C++ Standard Template Library by Robert Robson (auth.) PDF

By Robert Robson (auth.)

A accomplished creation and consultant to the STL, pitched on the point of readers already accustomed to C++. It provides a radical assessment of the services of the STL, particular discussions of using bins, descriptions of the algorithms and the way they are used, and the way the STL can be prolonged. An appendix presents an alphabetical connection with the total STL, making this an exceptionally worthy hands-on textual content for programmers of C++ and scholars coming to the STL for the 1st time.

Show description

Read or Download Using the STL: The C++ Standard Template Library PDF

Similar object-oriented software design books

Enterprise Application Integration

"Enterprise program Integration" offers an attractive creation to the real subject of EAI (Enterprise program Integration).

EAI performs a key position in lots of companies throughout many eventualities (for instance, imposing an firm software and/or integrating the applied sciences of an received company), so this booklet covers a tremendous topic.

This booklet as a complete is orientated in the direction of technologically-savvy participants, yet a number of sections of the publication, similar to the insurance of "what is EAI" should still attract, and be of serious worth to, a large viewers.

A Student Guide to Object-Oriented Development

This can be one of many very good booklet has to be learn through each company software developer. Eventhough the name is "A pupil consultant to Object-Oriented Development", really it really is greater than a scholar advisor. hugely recommended.
--Rama--
Systems Architect.

Learn Cocoa Touch for iOS

The Cocoa contact frameworks and APIs are robust instruments for growing local iOS apps, and they are unfastened with Xcode, Apple's improvement atmosphere. If you have got already gotten your ft rainy with Objective-C, and you are prepared to profit extra approximately iOS improvement, then examine Cocoa contact for iOS is the publication for you.

Options and Derivatives Programming in C++: Algorithms and Programming Techniques for the Financial Industry

This can be a hands-on publication for programmers desirous to learn the way C++ is utilized in the improvement of suggestions for techniques and derivatives buying and selling within the monetary undefined. As a big a part of the monetary undefined, suggestions and derivatives buying and selling has turn into more and more refined. complicated buying and selling innovations utilizing monetary derivatives were used at banks, hedge cash, and pension cash.

Additional resources for Using the STL: The C++ Standard Template Library

Example text

The iterator requires that one position past the end of the list exist, necessitating the addition of one more unused list 36 2: Iterators node at the end of the list. This means that an empty list will contain two nodes-the internal head pointer and the past-the-end node. 6 - The Constructor for a Doubly Linked List The methods begin () and end () return iterators that reference the first member of the list and the past-the-end node, respectively. If the list is empty, beg in () will return an iterator equal to that returned by end () so that an empty range is indicated.

As long as the iterators implement these operations correctly, then the functions will be able to use the iterators and obtain correct results. The fact that pointers satisfy all the requirements of iterators is what permits them to be used as iterators. Thus, all of the STL algorithms can be applied to arrays just as easily as the STL container classes. This extends the utility of the functions so that the same functions can be used on virtually any data structure in a program. As a result, less code has to be written, resulting is shorter development time and smaller executable programs.

Have you started to wonder what the STL functions do with the iterators passed to them? The answer is pretty much what you would expect. They perform the same operations on the iterators that we did in our functions mystrlen ( ) and reverse ( ). They compare iterators, increment and decrement them, and dereference them. As long as the iterators implement these operations correctly, then the functions will be able to use the iterators and obtain correct results. The fact that pointers satisfy all the requirements of iterators is what permits them to be used as iterators.

Download PDF sample

Rated 4.21 of 5 – based on 12 votes