BDE 4.14.0 Production release
|
Provide a class that allocates memory and is bitwise-moveable.
This component provides a single, unconstrained (value-semantic) attribute class, AllocBitwiseMoveableTestType
, that is bitwise-moveable, uses a bslma::Allocator
to supply memory, and defines the type traits bslma::UsesBslmaAllocator
and bslmf::IsBitwiseMoveable
.
data
: representation of the class valueThis section illustrates intended use of this component.
Suppose we wanted to print the supported traits of this test type.
First, we create a function template printTypeTraits
with a parameterized TYPE
:
Now, we invoke the printTypeTraits
function template using AllocBitwiseMoveableTestType
as the parameterized TYPE
:
Finally, we observe the console output: