1 #ifndef TGBOT_UTILS_MAKE_PTR_H 2 #define TGBOT_UTILS_MAKE_PTR_H 17 template<
typename PtrType,
typename... TypeArgs>
18 inline types::Ptr<PtrType>
makePtr(TypeArgs &&... args_fwd) {
19 return types::Ptr<PtrType>(
new PtrType(std::forward<TypeArgs>(args_fwd)...));
26 #endif // TGBOT_UTILS_MAKE_PTR_H Main tgbot namespace.
Definition: bot.h:13
types::Ptr< PtrType > makePtr(TypeArgs &&...args_fwd)
Make a new tgbot::types::Ptr.
Definition: make_ptr.h:18