qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
nocopy.h File Reference

Defines a base class to make derived classes non-copyable. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  qb::nocopy
 Base class to make derived classes non-copyable. More...

Detailed Description

Defines a base class to make derived classes non-copyable.

This file provides a utility struct qb::nocopy that, when inherited from (typically privately), deletes the copy constructor and copy assignment operator of the derived class. This is a common C++ idiom to prevent objects of certain types from being copied, which is often desirable for classes managing unique resources or those whose identity is important.

Author
qb - C++ Actor Framework

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.