Learn C++ With Constructing Generic Algorithms: Principles And Practice By Ben Deane (CPPCon 2020) Video

This video explores how to make your own algorithms. Starting with the raw loop that solves a nontrivial problem and turn it into a generic algorithm without removing the ability to perform. It will make you understand algorithm patterns and how to organize the pattern. You will also be inspected where existing algorithms fall short, including slight changes or wrappings that gives extra…

Learn How To Check The 32bitness Or 64bitness Your C++ Application

If you are looking to a way to reliably determine whether C++ code is being compiled in 32 bits or 64 bits there is way to check in C++ code. For a cross platform compilation (cross compiler environments like FireMonkey framework in C++ Builder) there is no single…

Learn To Easily Develop A Fun Fibonacci Number Generator In C++ For Windows

Fibonacci Numbers are sequence numbers called the Fibonacci sequence, and in mathematics, it starts with 0 and 1, and then each number is the sum of the two preceding ones. Fibonacci numbers are strongly related to Golden Ratio. In mathematics, two quantities are in…

Helpers for Generic C++ Code Accessing Container Properties

In addition to Helpers for Generic C++ Code Iterating Over Sequences the C++17 Standard Library provides the following helpers for writing generic code: #include <iterator> // new helpers of C++17 are defined here template<class Container> void foo(Container& c) { // Generic way to obtain: auto data = std::data(c); // - data; auto empty = std::empty(c); // - flag of…

Helpers for Generic C++ Code Iterating Over Sequences

The iterator library that is part of the C++ Standard Library provides the following helpers for writing generic code: #include <iterator> // helpers are defined here template<class Container> void foo(Container& c) { // Generic way to obtain (constant)…