Wrap a move of val using an allocator.
Declared in <bslalg_nothrowmovablewrapper.h>
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc,
bslmf::MovableRef<TYPE> val);
Wrap the specified val, using TYPEs extended move constructor. Use the specified alloc (e.g., the address of a bslma::Allocator object) to supply memory. Note that this constructor will not be selected by overload resolution unless TYPE is allocator aware.
| Name | Description |
|---|---|
| allocatorArg | tag selecting the allocator-extended constructor |
| alloc | allocator used to supply memory |
| val | value used to initialize the wrapped object |