Move assignment operator=
for transferring ownership of resources from one SampleAllocateePtr
object to another.

The behavior is undefined if the underlying sample is not valid, i.e. get() == nullptr
. The SampleAllocateePtr(s)
returned by the SkeletonEvent::Allocate
API will always contain a valid sample, but it is still unsafe to call this function after the SampleAllocateePtr
has been reset.
Syntax
// Variant 1
template<typename SampleType>
SampleDataTypePtr& ara::com::SampleAllocateePtr<SampleType>::operator=(SampleAllocateePtr<SampleType> && other) const
// Variant 2
template<typename SampleType>
SampleDataTypePtr& ara::com::SampleAllocateePtr<SampleType>::operator=(std::nullptr_t)
Parameters
in |
| Source |
Returns
SampleAllocateePtr
object
Thread-safety, Reentrance, Result Delivery
- Threadsafe : FALSE for same class instance, TRUE for different instances
- Reentrant : FALSE for same class instance, TRUE for different instances
- Synchronous : TRUE