Kagome
Polkadot Runtime Engine in C++17
non_copyable.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 class NonCopyable {
4  public:
5  NonCopyable(NonCopyable const &) = delete;
6  NonCopyable &operator=(NonCopyable const &) = delete;
7 
8  protected:
9  NonCopyable() = default;
10  ~NonCopyable() = default;
11 };
12 
13 class NonMovable {
14  public:
15  NonMovable(NonMovable &&) = delete;
16  NonMovable &operator=(NonMovable &&) = delete;
17 
18  protected:
19  NonMovable() = default;
20  ~NonMovable() = default;
21 };
~NonCopyable()=default
NonCopyable & operator=(NonCopyable const &)=delete
NonCopyable()=default