fup fabric

This commit is contained in:
Сергей Маринкевич
2025-08-05 19:49:39 +07:00
parent 06641a3767
commit 7f4d8c829d
+11
View File
@@ -0,0 +1,11 @@
#pragma once
#include <memory>
template <typename T>
class FabricMixin {
public:
template <typename... Args>
static std::shared_ptr<T> create(Args&&... args) {
return std::shared_ptr<T>(new T(std::forward<Args>(args)...));
}
};