11 lines
269 B
C
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
|