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

What Is The Inline Namespace Feature In Modern C++?

In modern C++, namespaces are a kind of library or framework. They are useful to hold the same name of classes, methods, and other entities in different namespaces. C++11 standard and other standards above, allow the inline keyword in a namespace definition and in this post, we explain how to use inline namespaces in modern C++. What is a namespace in modern C++? Namespaces in C++ allow…
Read more
C++C++11C++14C++17Learn C++Syntax

What Is An Assignment Operator In C++?

One of the most commonly used features of C++ software, in common with many programming languages, are assignment operators. These take the form of copy assignment and move assignment operators. In C++, a copy assignment operator can be used with “operator=” to create a new object from an existing one. In this post, we explain assignment operators with copy assignment operator examples…
Read more
C++C++11C++14C++17C++20Introduction to C++Learn C++

What Is The Long Long Int Type In C++?

In the early days of C++ there were few data types such as char, float, and int. Over time these types improved with new additions. Modern C++ is really amazing, it allows you to define your data type in accordance with the limits of your variable values. One of the largest integer types is the unsigned long long or unsigned long long int and in this post we explain how to use the long long int…
Read more
C++C++11C++14C++17C++20Learn C++SyntaxTemplates

What Is An Implicitly-defined Move Constructor in Modern C++?

The Move Constructor is one of the great features of Object Oriented Programming in C++, such as other features like; copy assignment operator constructors, copy constructors, move assignment operators, destructors, etc. Since the C++11 standards, inmodern development,the move constructor allows you to move the resources from one object to another object without copying them. One of…
Read more