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++17C++20Learn C++

What Are The Rules Of Zero, Three, Five, And Six In C++?

In C++, classes and structs are one of the most important parts of modern software development. In modern C++, there are some rules to support the principles of programming, in class definitions there are a few rules to be considered, these are the Rule of Zero, the Rule of Three, the Rule of Five, and the Rule of Six. In this post, we explain all of these rules with examples. C++ is an…
Read more
C++C++11C++14C++17C++20Learn C++

What Is The Rule Of Six In Modern C++?

In C++, classes and structs are one of the most important parts of modern application development. In modern C++, there are some rules to support the principles of programming, one of which is the Rule of Six in C++ (also known as the Rule of Five, excluding the constructor). In this post, we explain the Rule of Six in C++ with examples. C++ is an Object-Oriented Programming (OOP) language…
Read more
C++C++11C++14C++17C++20Learn C++

What Is The Rule Of Five In Modern C++?

In C++, classes and structs are one of the most important parts of modern app development. In modern C++, there are some rules to support the principles of programming, one of which is the Rule of Five in C++ (also known as the Rule of Six, including constructor). In this post, we explain What is the Rule of Five in C++ with examples. C++ is an Object-Oriented Programming (OOP) language. OOP…
Read more