Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/jolt_physics/Jolt/Core/NonCopyable.h
9906 views
1
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
2
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
3
// SPDX-License-Identifier: MIT
4
5
#pragma once
6
7
JPH_NAMESPACE_BEGIN
8
9
/// Class that makes another class non-copyable. Usage: Inherit from NonCopyable.
10
class JPH_EXPORT NonCopyable
11
{
12
public:
13
NonCopyable() = default;
14
NonCopyable(const NonCopyable &) = delete;
15
void operator = (const NonCopyable &) = delete;
16
};
17
18
JPH_NAMESPACE_END
19
20