An object of this type wraps a value of the specified TYPE, and provides no other functionality other than returning the wrapped object. The move constructor is guaranteed not to throw, even if the move constructor for TYPE has no such guarantee. The user is thus asserting that the move constructor for the wrapped object will not throw, even if it is allowed to. Constraints: this class can be instantiated on object types only, i.e., not references, arrays, or function types (though function pointers are OK).
Synopsis
Declared in <bslalg_nothrowmovablewrapper.h>
template<class TYPE>
class NothrowMovableWrapper;
Type Aliases
Name |
Description |
Alias for the wrapped |
|
Type of allocator to use. If |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object, invoking `TYPE`s destructor. |
Return the allocator used to construct this object. Note that this method will fail to instantiate unless |
|
|
|
Declare |
|
Declare that |
|
Declare whether |
|
Declare that |
|
Return a reference offering modifiable access to the wrapped object. |
|
Return a reference offering const access to the wrapped object. |
Specializations
Name |
Description |
This specialization is for wrapped types. We do not support wrapping a wrapped type. |
|
This specialization is for wrapped types. We do not support wrapping a wrapped type. |
Created with MrDocs