Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
C++20 STL Cookbook
C++20 STL Cookbook

C++20 STL Cookbook: Leverage the latest features of the STL to solve real-world problems

eBook
$9.99 $37.99
Paperback
$46.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

C++20 STL Cookbook

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Become familiar with the latest features of C++20 and write better code using the STL
  • Reduce the development time for your applications and enable faster deployment
  • Get up and running with the new and leaner STL capabilities introduced in the latest release

Description

Fast, efficient, and flexible, the C++ programming language has come a long way and is used in every area of the industry to solve many problems. The latest version C++20 will see programmers change the way they code as it brings a whole array of features enabling the quick deployment of applications. This book will get you up and running with using the STL in the best way possible. Beginning with new language features in C++20, this book will help you understand the language's mechanics and library features and offer insights into how they work. Unlike other books, the C++20 STL Cookbook takes an implementation-specific, problem-solution approach that will help you overcome hurdles quickly. You'll learn core STL concepts, such as containers, algorithms, utility classes, lambda expressions, iterators, and more, while working on real-world recipes. This book is a reference guide for using the C++ STL with its latest capabilities and exploring the cutting-edge features in functional programming and lambda expressions. By the end of the book C++20 book, you'll be able to leverage the latest C++ features and save time and effort while solving tasks elegantly using the STL.

Who is this book for?

This book is for intermediate to advanced C++ programmers who want to get the most out of the Standard Template Library of C++20, the newest version of C++. Basic knowledge of coding and C++ concepts is necessary to get started with this book.

What you will learn

  • Understand the new language features and the problems they can solve
  • Implement generic features of the STL with practical examples
  • Understand standard support classes for concurrency and synchronization
  • Perform efficient memory management using the STL
  • Implement seamless formatting using std::format
  • Work with strings the STL way instead of handcrafting C-style code

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 27, 2022
Length: 450 pages
Edition : 1st
Language : English
ISBN-13 : 9781803239057
Category :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : May 27, 2022
Length: 450 pages
Edition : 1st
Language : English
ISBN-13 : 9781803239057
Category :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 140.97
Modern CMake for C++
$46.99
Template Metaprogramming with C++
$46.99
C++20 STL Cookbook
$46.99
Total $ 140.97 Stars icon
Banner background image

Table of Contents

12 Chapters
Chaper 1: New C++20 Features Chevron down icon Chevron up icon
Chapter 2: General STL Features Chevron down icon Chevron up icon
Chapter 3: STL Containers Chevron down icon Chevron up icon
Chapter 4: Compatible Iterators Chevron down icon Chevron up icon
Chapter 5: Lambda Expressions Chevron down icon Chevron up icon
Chapter 6: STL Algorithms Chevron down icon Chevron up icon
Chapter 7: Strings, Streams, and Formatting Chevron down icon Chevron up icon
Chapter 8: Utility Classes Chevron down icon Chevron up icon
Chapter 9: Concurrency and Parallelism Chevron down icon Chevron up icon
Chapter 10: Using the File System Chevron down icon Chevron up icon
Chapter 11: A Few More Ideas Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(10 Ratings)
5 star 80%
4 star 10%
3 star 0%
2 star 0%
1 star 10%
Filter icon Filter
Top Reviews

Filter reviews by




Geraldo Netto Aug 29, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
First things first, STL used to be a double-edge sword and there are still some caveats due to various reasonsLuckily, C++ community is working hard to improve the language and fill the gaps to allow C++ to have "modern syntactic sugar" and C++ 20 reflects thisThe book is super easy to follow, I think even if you don't know much of C++ you can easily follow the "recipes" because it's "just enough code"Also, the book approaches other C++ 20 features like:- strings (seem to be trivial but bad usage of string formatting is one of the causes for most security vulnerabilities)- threads- iterators (the generators part is super cool! feels like python programming)- lambdasSome highlights:- explains C++ 20 STL features with "recipes"/examples including also the compilers who are supposed to have mature C++ 20 support- there is a specific recipe on how to avoid recompiling template which is interesting because it used to be a major problem (I have saw projects that would take hours to compile even on new hardware due to the heavy usage of templates)- string handling- threads with futures- iterators and lambdasWhile I understand that STL is the core of the bookOnce it extrapolates the STL scope when it talks about threads, strings and file system, I wish it could also consider the following:- I missed the compilation flag to enable C++ 20 support on gcc, clang, msvc (I don't recall seeing it although it is a really small thing)- coroutinesOverall it's a great introduction to STL and some nice modern features of C++
Amazon Verified review Amazon
POE Jun 03, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I am a seasoned C++ programmer and read this book to see if I could learn something new. I was impressed with how thoroughly the author covered the C++ Standard Template Library (STL). The book is clearly written for C++ developers, and I highly recommend it if you want to increase your C++ programming prowess.Packt Publishing’s cookbook format is ideally suited for this content. The recipes are organized into 11 categories. Each recipe contains sections on ‘how to do it’ and ‘how it works.’ Many of the sections also include ‘see also’ or ‘there’s more’ that includes related and deeper concepts. The book does start with an STL primer, albeit short. This is okay as it is written for current C++ developers. Before diving into the individual recipes, the book covers new features that C++20 adds to the STL. The publisher has made all the book’s code available via GitHub.This book will be a great addition to your C++ library, at least until the C++23 standard is finalized in 2023.
Amazon Verified review Amazon
Mohammad Huwaidi Aug 31, 2023
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is worth having. I like concise books.
Amazon Verified review Amazon
Jose Perez Jun 09, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I'm in love with this book. Great work.
Amazon Verified review Amazon
Daren R. Jun 02, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a fantastic book and I like the writing style of Bill Weinman. I have found this book to be an invaluable reference that has helped me get the most out of the new features that C++ 20 adds to the STL. I have now started to include concepts from this book into parts of my C++ code base modernisation.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.