C++C++11C++14C++17IteratorsLearn C++

Introduction to C++ Iterators

Iterator abstracts the concept of pointer to the sequence in range [begin, end), and thus provides the following basic operations: dereference to obtain the current element;movement to point the next element;comparison to determine at least the end of sequence. Iterator to the element of the sequence in range [begin, end) is valid from the moment of initialization and until: the moment it…
Read more
C++11C++14C++17Learn C++Templates

Stages of C++ Templates Compilation On Windows

In order to compile C++ templates the compilers like Embarcadero RAD Studio C++ compilers are required to perform two stages: definition stage and instantiation stage. The template definition stage On this stage the following checks are performed: static assertions and availability of names declarations (such as names of classes and functions) independent on template parameters are…
Read more
C++C++11C++17Learn C++

Top C++ Compilers for Windows in 2020

If you are on the hunt for the best C/C++ compilers available today, this article lists the top C/C++ compilers for Windows with their features. It’s very hard, in fact, to identify which C++ compiler is the best for you, as this is mostly about what you want to…
C++17Language FeatureLearn C++Syntax

If Statements In Modern C++

There are two kinds of if statements in modern C++: runtime if and compile-time if constexpr. Runtime if looks like: if (condition) statement-true if (condition) statement-true else statement-false In both forms of above if the result of condition yields to true, then statement-true is executed. Otherwise (in the second form of above) the statement-false is executed. Any expression…
Read more