C++11 introduced a new use of the delete keyword to make a function non-callable.
Introduction
Functions are a set of statements put together that perform a specific task. Member functions include the operators and functions that are members of a class. While the user has to provide these member functions, the compiler generates some of the functions which are known as special member functions.
We may want to disable the use of such functions. The reason may be to restrict certain features (defi...
Published on April 21, 2021 08:06