26#ifndef ROUTER_SRC_REST_MRS_SRC_HELPER_MAKE_SHARED_PTR_H_
27#define ROUTER_SRC_REST_MRS_SRC_HELPER_MAKE_SHARED_PTR_H_
39 template <
typename... Args>
41 ptr = std::make_shared<T>(std::forward<Args>(args)...);
49 operator std::shared_ptr<Z>() {
54 operator const std::shared_ptr<Z>()
const {
Definition: make_shared_ptr.h:35
T * operator->() const
Definition: make_shared_ptr.h:62
std::shared_ptr< T > shared_ptr
Definition: make_shared_ptr.h:37
T * get() const
Definition: make_shared_ptr.h:58
shared_ptr copy_base()
Definition: make_shared_ptr.h:66
void reset(T *t)
Definition: make_shared_ptr.h:64
T & operator*() const
Definition: make_shared_ptr.h:60
MakeSharedPtr(Args &&...args)
Definition: make_shared_ptr.h:40
shared_ptr ptr
Definition: make_shared_ptr.h:69
#define T
Definition: jit_executor_value.cc:373