CuteHMI - CuteHMI (CuteHMI.2)
NonCopyable.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_NONCOPYABLE_HPP
2 #define H_EXTENSIONS_CUTEHMI_2_INCLUDE_CUTEHMI_NONCOPYABLE_HPP
3 
4 namespace cutehmi {
5 
10 {
11  protected:
12  NonCopyable() = default;
13 
14  NonCopyable(NonCopyable && other) = default;
15 
16  ~NonCopyable() = default;
17 
18  NonCopyable & operator =(NonCopyable && other) = default;
19 
20  private:
21  NonCopyable(const NonCopyable & other) = delete;
22 
23  NonCopyable & operator =(const NonCopyable & other) = delete;
24 };
25 
26 }
27 
28 #endif
29 
30 //(c)C: Copyright © 2018-2019, Michał Policht <michal@policht.pl>. All rights reserved.
31 //(c)C: This file is a part of CuteHMI.
32 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
33 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
34 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::NonCopyable::NonCopyable
NonCopyable()=default
cutehmi::NonCopyable::~NonCopyable
~NonCopyable()=default
cutehmi
Definition: constants.hpp:6
cutehmi::NonCopyable::operator=
NonCopyable & operator=(NonCopyable &&other)=default
cutehmi::NonCopyable
Non-copyable object.
Definition: NonCopyable.hpp:9