trantor
Non-blocking I/O cross-platform TCP network library, using C++14
Loading...
Searching...
No Matches
NonCopyable.h
Go to the documentation of this file.
1
14
15#pragma once
16
17#include <trantor/exports.h>
18
19namespace trantor
20{
25class TRANTOR_EXPORT NonCopyable
26{
27 protected:
28 NonCopyable()
29 {
30 }
31 ~NonCopyable()
32 {
33 }
34 NonCopyable(const NonCopyable &) = delete;
35 NonCopyable &operator=(const NonCopyable &) = delete;
36 // some uncopyable classes maybe support move constructor....
37 NonCopyable(NonCopyable &&) noexcept(true) = default;
38 NonCopyable &operator=(NonCopyable &&) noexcept(true) = default;
39};
40
41} // namespace trantor
Definition EventLoop.h:34