Wrap a move of val using an allocator.
Synopsis
Declared in <bslalg_nothrowmovablewrapper.h>
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc,
bslmf::MovableRef<TYPE> val);
Description
Wrap the specified val, using TYPE`s 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.
Parameters
Name |
Description |
allocatorArg |
tag selecting the allocator‐extended constructor |
alloc |
allocator used to supply memory |
val |
value used to initialize the wrapped object |
Created with MrDocs