Blaze 3.9
NonCopyable.h
Go to the documentation of this file.
1//=================================================================================================
33//=================================================================================================
34
35#ifndef _BLAZE_UTIL_NONCOPYABLE_H_
36#define _BLAZE_UTIL_NONCOPYABLE_H_
37
38
39namespace blaze {
40
41//=================================================================================================
42//
43// CLASS DEFINITION
44//
45//=================================================================================================
46
47//*************************************************************************************************
64{
65 protected:
66 //**Constructor and destructor******************************************************************
69 inline NonCopyable() {}
70 inline ~NonCopyable() {}
72 //**********************************************************************************************
73
74 //**Copy constructor and copy assignment operator***********************************************
77 NonCopyable( const NonCopyable& ) = delete;
78 NonCopyable& operator=( const NonCopyable& ) = delete;
80 //**********************************************************************************************
81};
82//*************************************************************************************************
83
84} // namespace blaze
85
86#endif
Base class for non-copyable class instances.
Definition: NonCopyable.h:64
NonCopyable & operator=(const NonCopyable &)=delete
Copy assignment operator (explicitly deleted)
NonCopyable(const NonCopyable &)=delete
Copy constructor (explicitly deleted)
NonCopyable()
Default constructor for the NonCopyable class.
Definition: NonCopyable.h:69
~NonCopyable()
Destructor of the NonCopyable class.
Definition: NonCopyable.h:70