cppx-core
No_copy.hpp
Go to the documentation of this file.
1 #pragma once // Source encoding: UTF-8 with BOM (π is a lowercase Greek "pi").
2 
3 namespace cppx
4 {
5  class No_copy
6  {
7  auto operator=( const No_copy& ) -> No_copy& = delete;
8  No_copy( const No_copy& ) = delete;
9 
10  auto operator=( No_copy&& ) -> No_copy& = default;
11  No_copy( No_copy&& ) = default;
12 
13  public:
14  No_copy() {}
15  };
16 
17 } // namespace cppx