detail Namespace Reference

Space-ng SDK: sol3::asio::detail Namespace Reference
Space-ng SDK
sol3::asio::detail Namespace Reference

Functions

template<typename TDerived , typename TClass , typename TCallable >
auto bind_weak (std::weak_ptr< TClass > weak_ptr, TCallable &&callable)
 
template<typename TDerived , typename TClass , typename TCallable >
auto bind_shared (std::shared_ptr< TClass > shared_ptr, TCallable &&callable)
 
template<typename TMemberFn , typename... TArgs>
auto pack_method (TMemberFn method, TArgs &&... args)
 Packs a member function and its arguments into a standard callable that perfectly forwards ASIO completion tokens (e.g., error_code). More...
 

Function Documentation

◆ bind_shared()

template<typename TDerived , typename TClass , typename TCallable >
auto sol3::asio::detail::bind_shared ( std::shared_ptr< TClass >  shared_ptr,
TCallable &&  callable 
)

◆ bind_weak()

template<typename TDerived , typename TClass , typename TCallable >
auto sol3::asio::detail::bind_weak ( std::weak_ptr< TClass >  weak_ptr,
TCallable &&  callable 
)

◆ pack_method()

template<typename TMemberFn , typename... TArgs>
auto sol3::asio::detail::pack_method ( TMemberFn  method,
TArgs &&...  args 
)

Packs a member function and its arguments into a standard callable that perfectly forwards ASIO completion tokens (e.g., error_code).