C++C++11C++14C++17C++20IteratorsLearn C++Syntax

What Is A Mutex Mutual Exclusion In Modern C++

CPUs and GPUs have evolved year on year to feature a greater number of cores and transistors to give more computational power for today’s servers and computers. With the advent of multiple cores, it is common now for programs to make use of multiple simultaneous threads. In modern C++, multi-thread operations are amazingly evolved since C++11, still there are new improvements in the latest…
Read more
C++C++11C++14C++17C++20Learn C++Syntax

What Is An Explicit Conversion Operator In Modern C++?

In modern C++, explicit-qualified conversion functions work in the same context as explicit-qualified constructors and produce diagnostics in the same contexts as constructors do. C++11, C++17, and C++20 standards have improvements in this explicit specifier. This is done to avoid situations when the compiler uncomplainingly accepts code that is not semantically correct. In this post, we answer…
Read more
C++C++11C++14C++17C++20Introduction to C++Learn C++Syntax

What Is A Virtual Function Specifier In Modern C++?

In modern C++ software, a virtual function is a function in a base class or struct that can be redefined in derived classes or structs. They are member functions whose behavior can be overridden in derived classes. Thevirtual function specifier is the ‘virtual’ specifier to declare avirtualfunction in a base class. In this post, we explain how we can use virtual…
Read more
C++C++11C++14C++17C++20Learn C++Syntax

Learn How To Use The Override Specifier In Modern C++

Modern C++ has many additions compared to the original C++ standard. Regarding virtual overrides, C++11 tends to tighten the rules, to detect some problems that often arise. To achieve this goal C++11 introduces two new contextual keywords, the final and the override specifiers. Theoverride specifieris used to redefine the base class function in a derived class with the same signature…
Read more