![]() |
Home | Libraries | People | FAQ | More |
Construct a new handler_ptr.
template< class... Args> handler_ptr( Handler const& handler, Args&&... args);
This creates a new handler_ptr with an owned object
of type T. The allocator
associated with the handler will be used to allocate memory for the owned
object. The constructor for the owned object will be called thusly:
T(handler, std::forward<Args>(args)...)
|
Name |
Description |
|---|---|
|
|
The handler to associate with the owned object. The argument will be copied. |
|
|
Optional arguments forwarded to the owned object's constructor. |