10 #ifndef BOOST_BEAST_HANDLER_PTR_HPP 11 #define BOOST_BEAST_HANDLER_PTR_HPP 17 #include <type_traits> 52 template<
class T,
class Handler>
58 std::atomic<std::uint16_t> n;
67 template<
class DeducedHandler,
class... Args>
68 P(DeducedHandler&& handler, Args&&... args);
118 template<
class... Args>
138 template<
class... Args>
150 operator bool()
const 163 return p_ ? p_->t :
nullptr;
203 template<
class... Args>
Handler handler_type
The type of handler this object stores.
Definition: handler_ptr.hpp:78
Definition: async_result.hpp:20
Definition: handler_ptr.hpp:53
handler_type release_handler()
Definition: handler_ptr.ipp:105
handler_ptr(handler_ptr &&other)
Definition: handler_ptr.ipp:68
handler_ptr & operator=(handler_ptr const &)=delete
Copy assignment (disallowed).
T & operator*() const
Return a reference to the owned object.
Definition: handler_ptr.hpp:168
void invoke(Args &&...args)
Definition: handler_ptr.ipp:122
T * operator->() const
Return a pointer to the owned object.
Definition: handler_ptr.hpp:175
~handler_ptr()
Definition: handler_ptr.ipp:50
state element_type
The type of element this object stores.
Definition: handler_ptr.hpp:75
handler_type & handler() const
Returns a reference to the handler.
Definition: handler_ptr.hpp:143