Template Struct RequestDeleter

Struct Documentation

template<typename Port>
struct RequestDeleter

The RequestDeleter struct is a custom deleter in functor form which releases loans to a request’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 RequestDeleter(Port &port) noexcept
template<typename T>
void operator()(T *const payload) noexcept

Handles deletion of the request.

Parameters:

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

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

Handles deletion of the request.

Parameters:

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