C++ Standard Library Quick Reference by Peter Van Weert, Marc Gregoire

By Peter Van Weert, Marc Gregoire

This fast reference is a condensed reference consultant to the basic facts constructions, algorithms, and services supplied by means of the C++ average Library. extra in particular, this can be a compact number of crucial periods and services, utilized by C++ programmers every day. The C++ average Library fast Reference beneficial properties center sessions for strings, I/O streams, and numerous commonly used boxes, in addition to a accomplished set of algorithms to control them. lately, the C++11 and C++14 criteria have further much more effective box sessions, a brand new strong ordinary expression library, and a conveyable multithreading library that includes threads, mutexes, variables, and atomic variables. remember the fact that, it truly is challenging to understand and keep in mind the entire percentages, info, and intricacies of this large and transforming into library. this useful reference advisor is accordingly necessary to any C++ programmer. It bargains a condensed, well-structured precis of all crucial elements of the C++ general Library, together with all aforementioned performance. No page-long, repetitive examples or imprecise, hardly used beneficial properties. as a substitute, every thing you must recognize and beware of in perform is printed in a compact, to-the-point kind, interspersed with well-chosen, clarifying examples. The booklet doesn't clarify the C++ language or syntax, yet is offered to somebody with uncomplicated C++ wisdom. Even the main skilled C++ programmer notwithstanding will examine a specific thing or from it and locate it an invaluable memory-aid.

Show description

Read or Download C++ Standard Library Quick Reference PDF

Similar object-oriented software design books

The Essence of Object Oriented Programming with Java and UML

You may have written a few strains of Java code and created a number of items, but you realize that this does not represent precise object-oriented programming. As a Java programmer, you must get extra from your efforts. This advent to the fundamentals of object-oriented programming and the Unified Modeling Language (UML) offers you a company beginning on which to construct top quality software program platforms that gain the total advantage of an object-oriented technique.

Concepts in programming languages

Thoughts in Programming Languages elucidates the significant recommendations utilized in glossy programming languages, similar to capabilities, kinds, reminiscence administration, and keep watch over. The ebook is exclusive in its accomplished presentation and comparability of significant object-oriented programming languages. Separate chapters study the heritage of items, Simula and Smalltalk, and the well-known languages C++ and Java.

Computing patterns in strings

The computation of styles in strings is a basic requirement in lots of components of technological know-how and data processing. The operation of a textual content editor, the lexical research of a working laptop or computer application, the functioning of a finite automaton, the retrieval of data from a database - those are all actions which can require that styles be situated and computed.

Building Web Applications with ADO.NET and XML Web Services

Find out how to construct a data-intensive internet program with XML internet companies and ADO. internet! Richard Hundhausen, Steven Borg, Cole Francis, and Kenneth Wilcox have mixed their years of workmanship during this useful source to coach you ways a standard stressed company can leverage internet companies in B2B trade.

Extra resources for C++ Standard Library Quick Reference

Sample text

Moving An object can be moved elsewhere (rather than copied) if its previous user no longer needs it. Moving the resources from one object to another can often be implemented far more efficiently than (deep) copying them. For a string object, for instance, moving is typically as simple as copying a char* pointer and a length (constant time); there is no need to copy the entire char array (linear time). Unless otherwise specified, the source object that was moved from is left in an undefined but valid state and should not be used anymore unless reinitialized.

The main takeaway here is that to correctly forward arguments of a function template to a function, you should consider using perfect forwarding—that is, a forwarding reference combined with std::forward(). info CHAPTER 2 ■ GENERAL UTILITIES Swapping The std::swap() template function swaps two objects as if implemented as: template void swap(T& one, T& other) { T temp(std::move(one)); one = std::move(other); other = std::move(temp); } A similar swap() function template to piecewise swap all elements of equally long T[N] arrays is defined as well.

5) Generate random non-negative integral values according to a certain probability density function. 0) Generates random numbers according to a normal, also called Gaussian, distribution. The parameters specify the expected mean and standard deviation stddev. In Figure 1-1, μ represents the mean and σ the standard deviation. 0) Some more advanced normal-like distributions. Figure 1-1. 0) Various distributions related to the classical Poisson distribution. The latter is illustrated in Figure 1-1, where λ is the mean (which for this distribution equals the variance).

Download PDF sample

Rated 4.31 of 5 – based on 38 votes