...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Construct a new handler_ptr
.
template< class... Args> handler_ptr( Handler&& 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 moved. |
|
Optional arguments forwarded to the owned object's constructor. |