Template Struct ResponseDeleter

Struct Documentation

template<typename Port>
struct ResponseDeleter

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

Template Parameters:

Port – is either the ClientPortUser or ServerPortUser and need to have a releaseResponse method

Public Functions

explicit ResponseDeleter(Port &port) noexcept
template<typename T>
void operator()(T *const payload) noexcept

Handles deletion of the response.

Parameters:

payload[in] The pointer to the payload of the response.

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

Handles deletion of the response.

Parameters:

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