5 #include <libcopp/utils/config/libcopp_build_features.h>
17 LIBCOPP_COTASK_NAMESPACE_BEGIN
26 template <
class Ty,
class... TARGS>
27 static std::shared_ptr<Ty>
allocate(Ty *, TARGS &&...args) {
28 return std::make_shared<Ty>(std::forward<TARGS>(args)...);
35 LIBCOPP_COTASK_NAMESPACE_END
static void deallocate(std::shared_ptr< Ty > &)
static std::shared_ptr< Ty > allocate(Ty *, TARGS &&...args)
allocate a object