Book Image

C++17 STL Solutions [Video]

By : Jacek Galowicz
Book Image

C++17 STL Solutions [Video]

By: Jacek Galowicz

Overview of this book

<p>solve many problems. The upcoming version of C++ will see programmers change the way they code. If you want to grasp the practical usefulness of the C++17 STL in order to write smarter, fully portable code, then this course is for you.</p> <p>Beginning with new language features, this course will help you understand the language’s mechanics and library features, and offers insight into how they work. Unlike other courses, ours takes an implementation-specific, problem-solution approach that will help you quickly overcome hurdles. You will learn the core STL concepts, such as containers, algorithms, utility classes, lambda expressions, iterators, and more, while working on practical real-world videos. These videos will help you get the most from the STL and show you how to program in a better way.</p> <p>By the end of the course, you will be up to date with the latest C++17 features and save time and effort while solving tasks elegantly using the STL.</p> <p>All the code and supporting files for this course are available on Github at&nbsp;<a href="https://github.com/PacktPublishing/CPlusPlus17-STL-Solutions" target="_blank">https://github.com/PacktPublishing/CPlusPlus17-STL-Solutions</a></p> <h1>Style and Approach</h1> <p>This solution-based guide will show you how to make the best use of C++ together with the STL to squeeze more out of the standard language.</p>
Table of Contents (8 chapters)
Chapter 7
Utility Classes
Content Locked
Section 4
Random Numbers
In order to get random numbers for whatever purpose, C++ programmers usually basically used the rand() function of the C library before C++11. Since C++11, there has been a whole suite of random number generators that serve different purposes and have different characteristics. These generators are not completely self-explanatory, so we will have a look at all of them in this video. - Generate random numbers and choosing the right random number engine - Generate random numbers and letting the STL shape specific distributions