CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
utils::NoCopyNoMove Class Reference

Utility class to delete copy and move contructors. More...

#include <utils.hh>

Inheritance diagram for utils::NoCopyNoMove:

Public Member Functions

 NoCopyNoMove (const NoCopyNoMove &)=delete
NoCopyNoMove & operator= (const NoCopyNoMove &)=delete
 NoCopyNoMove (NoCopyNoMove &&)=delete
NoCopyNoMove & operator= (NoCopyNoMove &&)=delete

Detailed Description

Utility class to delete copy and move contructors.

Inherit from this if want to prevent your class from being accidentally copied. This is especially useful for classes used for MMIO as they must be instantiated at a specific address so copying is a bad idea.

The default no-argument constructor and destructor is provided.

Definition at line 52 of file utils.hh.


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