C++C++11C++14C++17Introduction to C++Learn C++

How To Learn initializer_list (std::initializer_list) In Modern C++

C++ has some really great features for being able to define different types of variables and structure. One of the most used and very useful arrays in C++ is the std::vector. If you know arrays in C and C++, then containers are a modern and very flexible form of arrays in C++. If you want to initialize containers like vector, list, map, etc. you need use std::initializer_list. It can be used with…
Read more
C++C++11C++14C++17C++20Introduction to C++Learn C++SyntaxTemplates

How To Learn Limits Of A Variable Type In C++

When there is a numerical value in an application’s development code, a professional programmer needs to understand which type of a variable should be used how big it could be in terms of capacity and memory usage. The developer must take into account what the minimum and maximum ranges could be. In most operations, the exact choice of variable might not be too important, but for larger…
Read more
C++C++11C++14C++17Introduction to C++Learn C++Syntax

Learn What auto And Auto-Typed Variables Are In Modern C++

C++ is a highly evolved and mature programming language. The C++ language has a great set of choices of modern C++ Editor and compilers all of which come with a lot of tools, GUI components, and libraries. C++11 was a big step for functional programming and it brought many other very useful features like automatic type deduction (auto), lambda expressions, and decltype features. In this post…
Read more
C++C++11C++14C++17Learn C++SyntaxTemplates

Learn About Extern Templates In Modern C++

The template feature in C++ is one of the great capabilities of modern C++. A template is a simple and very powerful statement in C++ that defines the operations of a class or function. In this article, we will show how extern templates can be used in a modern C++ app based on recent C++ standards.  First of all, let’s remind ourselves of what templates are in C++. What is a…
Read more