Constructors
Synopses
Declared in <bslalg_nothrowmovablewrapper.h>
Value‐initialize the wrapped object.
Copy construct from the specified original wrapper using `TYPE`s copy constructor.
NothrowMovableWrapper(NothrowMovableWrapper const& original);
Move construct from the specified original wrapper.
NothrowMovableWrapper(bslmf::MovableRef<NothrowMovableWrapper> original) noexcept;
Wrap the specified val, using `TYPE`s move constructor.
Wrap a copy of the specified val.
NothrowMovableWrapper(TYPE const& val);
Same as the preceding constructor, using the specified alloc to supply memory.
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc);
Move construct from original using an allocator.
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc,
bslmf::MovableRef<NothrowMovableWrapper> original);
Wrap a move of val using an allocator.
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc,
bslmf::MovableRef<TYPE> val);
Copy construct from original using an allocator.
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc,
NothrowMovableWrapper const& original);
Same as the preceding constructor, using the specified alloc to supply memory.
NothrowMovableWrapper(
std::allocator_arg_t allocatorArg,
allocator_type const& alloc,
TYPE const& val);
Parameters
Name |
Description |
original |
wrapper whose value is copied |
val |
value used to initialize the wrapped object |
allocatorArg |
tag selecting the allocator‐extended constructor |
alloc |
allocator used to supply memory |
Created with MrDocs