C++ Lambda Expressions

In C++, typically functions are defined and called by name. They are associated with an object, or not, but regardless they are named: print_tables(), object.get_items(). With lambda functions or lambda expressions, you now have the option for anonymous functions … that is, a

The C++ Programming Language – Part 11

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 10 – Expressions (Continued) The implicit conversions that preserve values are called promotions.

The C++ Programming Language – Part 10

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 8 – Structures, Unions, and Enumerations A struct is a class where all

The C++ Programming Language – Part 9

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 7 – Pointers, Arrays, and References (continued) Why even use pointers in the

The C++ Programming Language – Part 8

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 7 – Pointers, Arrays, and References (continued) Run-time range checking on array bounds

The C++ Programming Language – Part 7

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 6 – Types and Declarations (continued) Objects can be classified based on their

The C++ Programming Language – Part 6

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 6 – Types and Declarations C++ adheres to a standard. What that means

The C++ Programming Language – Part 5

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 5 – Concurrency and Utilities (continued) Threads sometimes need to wait on events

The C++ Programming Language – Part 4

This post will be mostly for personal reference as I go through Bjarne Stroustrop’s “The C++ Programming Language” 4th edition textbook. Some of the notes will appear random. Chapter 4 – Containers and Algorithms (continued) A standard library map is a search