C++Generic ProgrammingLanguage FeatureLearn C++

Testing C++ Builder CLANG and GNU C++ performance by Counting Prime Numbers

In this post we compared runtime performance of C++ Builder Console Application with CLANG Compiler and GCC Compiler.Prime numbers are interesting area to research. A prime number, it is also called prime shortly , is a natural number (apositive integer) greater than 1 that is not a productof two smaller natural numbers.If a number is not prime then it is called as a…
Read more
C++Generic ProgrammingLearn C++Videos

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…
Read more
C++17Generic ProgrammingLearn C++

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…
Read more