Template Struct SampleDeleter

Struct Documentation

template<typename Port>
struct SampleDeleter

The SampleDeleter struct is a custom deleter in functor form which releases loans to a sample’s underlying memory chunk via the corresponding port.. Each port should create its own instance of this deleter struct.

Public Functions

SampleDeleter(Port &port) noexcept
template<typename T>
void operator()(T *const userPayload) noexcept

Handles deletion of the sample.

Parameters:

userPayload[in] The pointer to the user-payload of the sample.

template<typename T>
void operator()(const T *const userPayload) const noexcept

Handles deletion of the sample.

Parameters:

userPayload[in] The pointer to the user-payload of the sample.