9using Scope = std::unique_ptr<T>;
10template <
typename T,
typename... Args>
12 return std::make_unique<T>(std::forward<Args>(args)...);
16using Ref = std::shared_ptr<T>;
17template <
typename T,
typename... Args>
19 return std::make_shared<T>(std::forward<Args>(args)...);
Definition application.cpp:63
std::shared_ptr< T > Ref
Definition base.h:16
constexpr Ref< T > CreateRef(Args &&... args)
Definition base.h:18
constexpr Scope< T > CreateScope(Args &&... args)
Definition base.h:11
std::unique_ptr< T > Scope
Definition base.h:9