Add wrapper for smart pointers

This commit is contained in:
Georg Hagen
2024-07-06 21:43:50 +02:00
parent 2b32717c5b
commit c6c67f2bff

View 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>;
}