Constructors
Declared in <bslalg_nothrowmovablewrapper.h>
Value-initialize the object wrapped by *this. 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.
NothrowMovableWrapper();
» more...
Copy construct from the specified original wrapper using TYPEs copy constructor.
NothrowMovableWrapper(NothrowMovableWrapper const& original);
» more...
Move construct from the specified original wrapper using TYPEs move constructor. Note that this move constructor is unconditionally noexcept, as that is the entire purpose of this wrapper.
NothrowMovableWrapper(bslmf::MovableRef<NothrowMovableWrapper> original) noexcept;
» more...
Wrap the specified val, using TYPEs move constructor.
NothrowMovableWrapper(bslmf::MovableRef<TYPE> val);
» more...
Wrap the specified val, using TYPEs (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.
NothrowMovableWrapper(TYPE const& val);
» more...
Same as the preceding constructor, using the specified alloc to supply memory.
NothrowMovableWrapper(
std::allocator_arg_t,
allocator_type const& alloc);
» more...
Move construct from the specified original wrapper 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.
NothrowMovableWrapper(
std::allocator_arg_t,
allocator_type const& alloc,
bslmf::MovableRef<NothrowMovableWrapper> original);
» more...
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.
NothrowMovableWrapper(
std::allocator_arg_t,
allocator_type const& alloc,
bslmf::MovableRef<TYPE> val);
» more...
Copy construct from the specified original wrapper using TYPEs extended copy 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.
NothrowMovableWrapper(
std::allocator_arg_t,
allocator_type const& alloc,
NothrowMovableWrapper const& original);
» more...
Same as the preceding constructor, using the specified alloc to supply memory.
NothrowMovableWrapper(
std::allocator_arg_t,
allocator_type const& alloc,
TYPE const& val);
» more...