MaMiCo 1.2
Loading...
Searching...
No Matches
Uncopyable.h
1// Copyright (C) 2015 Technische Universitaet Muenchen
2// This file is part of the Mamico project. For conditions of distribution
3// and use, please see the copyright notice in Mamico's main folder, or at
4// www5.in.tum.de/mamico
5#ifndef _TARCH_UTILS_UNCOPYABLE_H_
6#define _TARCH_UTILS_UNCOPYABLE_H_
7
8namespace tarch {
9namespace utils {
10class Uncopyable;
11}
12} // namespace tarch
13
14// class to prevent copying; just inherit "privately" from this and copying will
15// not work anymore (see Item6 of Effective C++, S. Meyers)
17protected:
18 Uncopyable() {}
19 ~Uncopyable() {}
20
21private:
22 Uncopyable(const tarch::utils::Uncopyable&);
23 Uncopyable& operator=(const tarch::utils::Uncopyable&);
24};
25
26#endif //
Definition Uncopyable.h:16
Definition Configuration.h:11