LibCarna Version 3.4.0
Loading...
Searching...
No Matches
noncopyable.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 - 2016 Leonid Kostrykin
3 *
4 * Chair of Medical Engineering (mediTEC)
5 * RWTH Aachen University
6 * Pauwelsstr. 20
7 * 52074 Aachen
8 * Germany
9 *
10 *
11 * Copyright (C) 2021 - 2025 Leonid Kostrykin
12 *
13 */
14
15#ifndef NONCOPYABLE_H_6014714286
16#define NONCOPYABLE_H_6014714286
17
23namespace LibCarna
24{
25
26namespace base
27{
28
29
30
31// ----------------------------------------------------------------------------------
32// noncopyable
33// ----------------------------------------------------------------------------------
34
45{
46
47private:
48
51 noncopyable( const noncopyable& )
52 {
53 }
54
57 noncopyable& operator=( const noncopyable& )
58 {
59 return *this;
60 }
61
62
63public:
64
68 {
69 }
70
71}; // noncopyable
72
73
74
109#define NON_COPYABLE private: ::LibCarna::base::noncopyable __noncopyable;
110
111
112
113} // namespace LibCarna :: base
114
115} // namespace LibCarna
116
117#endif // NONCOPYABLE_H_6014714286
Objects from classes inheriting this cannot be copied.
noncopyable()
Enabled default constructor.