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

What Is An Extended Friend Declaration in Modern C++?

In modern C++ the standards have a wonderfully named extended friend declaration feature to address the class declarations which is a template parameter as a friend. This extended friend declaration is available with the C++ compiler that has C++11 and above standards. In this post, we explain a friend and extended friend declaration in modern C++. What is a friend declaration in modern…
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++20Learn C++Syntax

What Is A Trivial Move Constructor In Modern C++?

C++ is a wonderful programming language with its object-oriented programming features, such as Classes, Objects, constructors, move constructors, copy constructors, destructors, etc. Since the C++11 standards, in modern C++, one of the features is the move constructor that allows you to move the resources from one object to another object without copying them. One of the move constructors is the…
Read more
C++C++11C++14C++17Learn C++Syntax

What is Assignment Operator In C++ Classes?

In C++, Classes and Objects are part of object-oriented methods and typically provide features such as properties and methods. One of the features of a C++ Editor are assignment operators such as copy assignment and move assignment operators. In C++, a copy assignment operator is used with “operator=” to create a new object from an existing one. In this post, we explain assignment…
Read more