#include <bsltf_nonoptionalalloctesttype.h>
This unconstrained (value-semantic) attribute class that uses a bslma::Allocator
to allocate memory and defines the type trait bslma::UsesBslmaAllocator
. This class does not provide a default constructor.
See bsltf_nonoptionalalloctesttype
◆ NonOptionalAllocTestType() [1/3]
bsltf::NonOptionalAllocTestType::NonOptionalAllocTestType |
( |
bslma::Allocator * |
basicAllocator | ) |
|
|
explicit |
Create a NonOptionalAllocTestType
object having the (default) attribute values using the specified basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ NonOptionalAllocTestType() [2/3]
bsltf::NonOptionalAllocTestType::NonOptionalAllocTestType |
( |
int |
data, |
|
|
bslma::Allocator * |
basicAllocator |
|
) |
| |
|
explicit |
Create a NonOptionalAllocTestType
object having the specified data
attribute value using the specified a basicAllocator
to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ NonOptionalAllocTestType() [3/3]
Create a NonOptionalAllocTestType
object having the same value as the specified original
object. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
◆ ~NonOptionalAllocTestType()
bsltf::NonOptionalAllocTestType::~NonOptionalAllocTestType |
( |
| ) |
|
◆ allocator()
◆ data()
int bsltf::NonOptionalAllocTestType::data |
( |
| ) |
const |
|
inline |
◆ operator=()
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
◆ setData()
void bsltf::NonOptionalAllocTestType::setData |
( |
int |
value | ) |
|
|
inline |
The documentation for this class was generated from the following file: