Wrap a copy of the specified val.
Synopsis
Declared in <bslalg_nothrowmovablewrapper.h>
NothrowMovableWrapper(TYPE const& val);
Description
Wrap the specified val, using TYPE`s (possibly extended) copy constructor. For allocator‐aware `TYPE, optionally specify an alloc (e.g., the address of a bslma::Allocator object) to supply memory; otherwise, the default allocator is used.
Parameters
Name |
Description |
val |
value used to initialize the wrapped object |
Created with MrDocs