MySQL 8.0.40
Source Code Documentation
ut::Non_copyable Class Reference

A utility class which, if inherited from, prevents the descendant class from being copied, moved, or assigned. More...

#include <ut0class_life_cycle.h>

Inheritance diagram for ut::Non_copyable:
[legend]

Public Member Functions

 Non_copyable (const Non_copyable &)=delete
 
Non_copyableoperator= (const Non_copyable &)=delete
 

Protected Member Functions

 Non_copyable ()=default
 
 ~Non_copyable ()=default
 

Detailed Description

A utility class which, if inherited from, prevents the descendant class from being copied, moved, or assigned.

This is useful for guard classes.

Constructor & Destructor Documentation

◆ Non_copyable() [1/2]

ut::Non_copyable::Non_copyable ( const Non_copyable )
delete

◆ Non_copyable() [2/2]

ut::Non_copyable::Non_copyable ( )
protecteddefault

◆ ~Non_copyable()

ut::Non_copyable::~Non_copyable ( )
protecteddefault

Member Function Documentation

◆ operator=()

Non_copyable & ut::Non_copyable::operator= ( const Non_copyable )
delete

The documentation for this class was generated from the following file: