MaMiCo
1.2
Loading...
Searching...
No Matches
tarch
utils
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
8
namespace
tarch
{
9
namespace
utils {
10
class
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)
16
class
tarch::utils::Uncopyable
{
17
protected
:
18
Uncopyable() {}
19
~Uncopyable() {}
20
21
private
:
22
Uncopyable(
const
tarch::utils::Uncopyable
&);
23
Uncopyable& operator=(
const
tarch::utils::Uncopyable
&);
24
};
25
26
#endif
//
tarch::utils::Uncopyable
Definition
Uncopyable.h:16
tarch
Definition
Configuration.h:11
Generated by
1.13.2