27template <
typename TypeT,
typename RcT = RC<thread_unsafe_refcount>>
42 template <
typename... ArgsT>
45 return Ptr(
new RcEnable(std::forward<ArgsT>(args)...));
60 template <
typename... ArgsT>
62 : TypeT(std::forward<ArgsT>(args)...),
76template <
typename TypeT,
typename RcT = RC<thread_unsafe_refcount>,
typename... ArgsT>
A class template that enables reference counting for a given type.
RcEnable(ArgsT &&...args)
Private constructor for RcEnable.
RCPtr< RcEnable > Ptr
Alias for the pointer type used by the reference counting class.
static Ptr Create(ArgsT &&...args)
Creates a new instance of RcEnable with the given arguments.
Support deferred server-side state creation when client connects.
auto make_rc(ArgsT &&...args)
Helper function to create a reference-counted object with the default thread-unsafe reference countin...