ABLATE Source Documentation  0.12.34
nonCopyable.hpp
1 #ifndef ABLATELIBRARY_NONCOPYABLE_HPP
2 #define ABLATELIBRARY_NONCOPYABLE_HPP
3 
4 namespace ablate::utilities {
5 
9 class NonCopyable {
10  protected:
11  // Do not allow the creation outside a derived class
12  constexpr NonCopyable() = default;
13  ~NonCopyable() = default;
14 
15  public:
16  // Prevent a class from being copied
17  NonCopyable(const NonCopyable&) = delete;
18  NonCopyable& operator=(const NonCopyable&) = delete;
19 };
20 }; // namespace ablate::utilities
21 #endif // ABLATELIBRARY_NONCOPYABLE_HPP
Definition: nonCopyable.hpp:9