Quick Links: |
#include <bsltf_bitwisecopyabletesttype.h>
Public Member Functions | |
BSLMF_NESTED_TRAIT_DECLARATION (BitwiseCopyableTestType, bsl::is_trivially_copyable) | |
BitwiseCopyableTestType () | |
BitwiseCopyableTestType (int data) | |
~BitwiseCopyableTestType () | |
void | setData (int value) |
int | data () const |
This unconstrained (value-semantic) attribute class defines the bsl::is_trivially_copyable
trait and does not allocate memory. See the Attributes section under @DESCRIPTION in the component-level documentation for information on the class attributes.
See Component bsltf_bitwisecopyabletesttype
bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType | ( | ) |
Create a SimpleTestType
object having the (default) attribute values:
data() == 0
bsltf::BitwiseCopyableTestType::BitwiseCopyableTestType | ( | int | data | ) | [explicit] |
Create a BitwiseCopyableTestType
object having the specified data
attribute value.
bsltf::BitwiseCopyableTestType::~BitwiseCopyableTestType | ( | ) |
Destroy this object.
bsltf::BitwiseCopyableTestType::BSLMF_NESTED_TRAIT_DECLARATION | ( | BitwiseCopyableTestType | , | |
bsl::is_trivially_copyable | ||||
) |
void bsltf::BitwiseCopyableTestType::setData | ( | int | value | ) |
Set the data
attribute of this object to the specified value
.
int bsltf::BitwiseCopyableTestType::data | ( | ) | const |
Return the value of the data
attribute of this object.