Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying C++ Lambda Expressions - From C++98 to C++23
  • Table Of Contents Toc
C++ Lambda Expressions - From C++98 to C++23

C++ Lambda Expressions - From C++98 to C++23

By : Umar Lone
close
close
C++ Lambda Expressions - From C++98 to C++23

C++ Lambda Expressions - From C++98 to C++23

By: Umar Lone

Overview of this book

From C++98 to C++23, callable entities have transformed how developers write flexible, maintainable, and efficient code. The course begins with a solid foundation in function pointers, including callbacks and pointers to member functions, then moves to function objects, highlighting their strengths over raw pointers and their role in shaping the path toward lambdas. Next, you’ll explore the game-changing arrival of lambdas in C++11. You will master their syntax, capture lists, and usage patterns, from simple inline functions to advanced techniques like immediately invoked functions and std::function wrappers. The journey continues into C++14 and C++17 with generic lambdas, generalized captures, and constexpr capabilities, unlocking even greater flexibility and performance in your code. Finally, the course covers C++20 and C++23 innovations, including template parameters in lambdas, constrained lambdas, static call operators, and recursive lambdas. Through practical, real-world examples, you will gain an in-depth understanding of each feature and learn to combine them effectively, enabling you to write modern, expressive, and highly reusable C++ code for production environments.
Table of Contents (7 chapters)
close
close
You're currently viewing a free sample. Access the full title and Packt library for free now with a free trial.
Chapter: 3
Function Objects
Icon This video is locked
Icon
Icon
0:00
2.0x
1.5x
1.25x
1.0x
0.5x
caption settings
caption off
Icon Icon
ShowHide Transcripts Icon
CONTINUE WATCHING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
C++ Lambda Expressions - From C++98 to C++23
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon