qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
nocopy.h
Go to the documentation of this file.
1
26
27#ifndef QB_UTILS_NOCOPY_H
28#define QB_UTILS_NOCOPY_H
29
30namespace qb {
60struct nocopy {
62 nocopy() = default;
63
65 nocopy(nocopy const &) = delete;
66
68 nocopy(nocopy const &&) = delete; // Corrected from const && to && for typical move signature, though deleting it covers all.
69
71 nocopy &operator=(nocopy const &) = delete;
72
74 nocopy &operator=(nocopy &&) = delete; // Added to explicitly delete move assignment
75};
76} // namespace qb
77
78#endif // QB_UTILS_NOCOPY_H
nocopy(nocopy const &&)=delete
Deleted move constructor.
nocopy()=default
Default constructor.
nocopy(nocopy const &)=delete
Deleted copy constructor.
nocopy & operator=(nocopy &&)=delete
Deleted move assignment operator.
nocopy & operator=(nocopy const &)=delete
Deleted copy assignment operator.