VWeb/Includes/Types.h
Maurice Grönwoldt 5bb68a7d02 Split VWeb into smaller headers
We have no make install support... so we don't need to have everything as a single-header and lib file.
2023-09-16 16:29:03 +02:00

11 lines
269 B
C++

#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