C++C++11C++14C++17C++20Learn C++

What Is An Eligible Move Constructor In Modern C++?

The object-oriented programming features of modern C++ is really enhanced with many features, such as Classes, Objects, constructors, move constructors, copy constructors, destructors, etc. Since the C++11 standard was released one of the modern programming features is the move constructor that allows you to move the resources from one object to another object without copying them. One of the…
Read more
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++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
C++C++11C++14C++17Learn C++Templates

Learn What Is A Parameter Pack In C++

One of the great features of modern C++ is the ability to define templates. 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 explain what we mean by parameter pack in C++. You can download C++ here and use a professional C++ IDE and compiler to try things out for yourself.  What is parameter pack in…
Read more