Add wrapper for smart pointers
This commit is contained in:
16
openVulkanoCpp/Base/Wrapper.hpp
Normal file
16
openVulkanoCpp/Base/Wrapper.hpp
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
/*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
|
namespace OpenVulkano
|
||||||
|
{
|
||||||
|
template<typename T> using Ptr = std::shared_ptr<T>;
|
||||||
|
template<typename T> using Weak = std::weak_ptr<T>;
|
||||||
|
template<typename T> using Unique = std::unique_ptr<T>;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user