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

By Peter Van Weert, Marc Gregoire

This fast reference is a condensed advisor to the basic info constructions, algorithms, and features supplied through the C++ usual Library. utilized by thousands of C++ programmers each day, the C++ commonplace Library positive factors center sessions for strings, I/O streams, and numerous standard packing containers, in addition to a complete set of algorithms to govern them. in recent times, the C++11 and C++14 criteria have additional much more effective box periods, a brand new robust standard expression library, and a conveyable multithreading library that includes threads, mutexes, variables, and atomic variables.
Needless to assert, it really is challenging to understand and consider all of the probabilities, info, and intricacies of this substantial and transforming into library. this convenient reference consultant is hence integral to any C++ programmer. It bargains a condensed, well-structured precis of all crucial points of the C++ typical Library. No page-long, repetitive examples or vague, not often used good points. as a substitute, every thing you must be aware of and beware of in perform is printed in a compact, to-the-point variety, interspersed with sensible assistance and well-chosen, clarifying examples. The ebook doesn't clarify the C++ language or syntax, yet is offered to somebody with uncomplicated C++ wisdom or programming event. Even the main skilled C++ programmer notwithstanding will examine a specific thing or from it and locate it an invaluable memory-aid. one of the issues coated are:
What you are going to Learn
  • Gain the necessities that the C++ usual Library has to offer
  • Use packing containers to successfully shop and retrieve your data
  • Use algorithms to examine and control your data
  • See how lambda expressions enable for based use of algorithms
  • Discover what the normal string type offers and the way to take advantage of it
  • Write localized applications
  • Work with dossier and stream-based I/O
  • Discover what clever guidelines are and the way to exploit them to avoid reminiscence leaks
  • Write secure and effective multi-threaded code utilizing the threading libraries
Who This booklet Is For
All C++ programmers: regardless of their skillability with the language or the normal Library, this ebook deals an critical reference and memory-aid.

A secondary viewers is builders who're new to C++, yet no longer new to programming, and who are looking to study extra at the C++ common Library in a brief, condensed manner.

Show description

Read Online or Download C++ Standard Library Quick Reference PDF

Best object-oriented software design books

Systems and software verification

Version checking is a robust technique for the formal verification of software program. It immediately presents entire proofs of correctness, or explains, through counter-examples, why a approach isn't really right. right here, the writer presents a good written and easy advent to the recent strategy. the 1st half describes purely the theoretical foundation of version checking: transition platforms as a proper version of platforms, temporal common sense as a proper language for behavioral homes, and model-checking algorithms.

A Primer on Scientific Programming with Python

The e-book serves as a primary creation to machine programming of medical purposes, utilizing the high-level Python language. The exposition is instance- and problem-oriented, the place the purposes are taken from arithmetic, numerical calculus, records, physics, biology, and finance. The e-book teaches "Matlab-style" and procedural programming in addition to object-oriented programming.

Perl Power!: A JumpStart Guide to Programming with Perl 5

While you're trying to convey the facility of Perl in your computer, this is often the ebook for you. you can now study Perl fundamentals and wake up to hurry with net and item orientated programming with only one e-book. full of tricks and suggestions, strategies and workouts, Perl strength! is the ideal jumpstart advisor to the most well liked beneficial properties of the most recent Perl liberate.

Android Studio New Media Fundamentals: Content Production of Digital Audio/Video, Illustration and 3D Animation

This book is a short primer protecting thoughts important to electronic imagery, electronic audio and electronic representation utilizing open resource software program applications equivalent to GIMP, Audacity and Inkscape. those are used for this publication simply because they're unfastened for advertisement use. The booklet builds at the foundational options of raster, vector and waves (audio), and will get extra complicated as chapters growth, overlaying what new media resources are top to be used with Android Studio in addition to key components concerning the information footprint optimization paintings strategy and why it will be important.

Extra info for C++ Standard Library Quick Reference

Example text

Because there is no third level, though, the corresponding values are simply selected from the valarray: {11,33,55, 66,88,111}. std::mask_array The operator[] on a valarray also accepts a valarray, similarly returning either a valarray with copies or a std::mask_array with references. This operator selects all elements from a valarray that have a true value in the corresponding position in the valarray. A mask_array supports a set of operations analogous to those of a slice_array. Here is an example: std::indirect_array Finally, the operator[] on valarray accepts a valarray as well, returning either a valarray with copies or a std::indirect_array with references.

Custom deleters are again supported. Unlike with unique_ptr, though, the deleter’s type is not a type argument of the shared_ptr template. txt", "r"), fclose); To obtain a shared_ptr to a related type, use std::static_pointer_cast(), dynamic_pointer_cast(), or const_pointer_cast(). If the result is non-null, the reference count is safely incremented with one. An example will clarify: A lesser-known feature of shared_ptrs is called aliasing and is used for sharing parts of an already shared object.

Has_infinity Identifies types that can represent positive infinity. Usually true for all standard floating-point types. infinity() Returns the value for positive infinity. Only meaningful if has_infinity is true. has_quiet_NaN, has_signaling_NaN Identifies types that can represent the special value for a quiet or signaling NaN. Usually true for all standard floating-point types. Using a signaling NaN in operations results in an exception; using a quiet NaN does not. quiet_NaN(), signaling_NaN() Returns the value for a quiet or signaling NaN.

Download PDF sample

Rated 4.78 of 5 – based on 40 votes