Template Class FiCloseEndpointDeleter
Defined in File Helpers.hpp
Class Documentation
-
template<HasFidConcept T>
class FiCloseEndpointDeleter Deleter for libfabric objects to be closed by fi_close associated with an endpoint address.
This struct provides a custom deleter for the any libfabric object that contains a fid that is closed by fi_close. It is used with std::unique_ptr to automatically free the structure when it goes out of scope.
Public Functions
-
inline explicit FiCloseEndpointDeleter(EndPointAddress address = {}, std::string message = "")
Construct a new FiCloseEndpointDeleter object.
Takes arguments to be put into an error message in case of a failure to close.
- Parameters:
address – The address of the endpoint
message – The message to be printed in case of an error
-
inline explicit FiCloseEndpointDeleter(EndPointAddress address = {}, std::string message = "")