VWeb/Includes/Types.h

11 lines
269 B
C
Raw Normal View History

#pragma once
#include <memory>
namespace VWeb {
template <typename T> using Ref = std::shared_ptr<T>;
template <typename T, typename... Args>
constexpr Ref<T> CreateRef(Args &&...args) {
return std::make_shared<T>(std::forward<Args>(args)...);
}
} // namespace VWeb