closeId

fnvoid closeId(alias closeFunc)(hid_t * id)

Generic ID closer for use with scope guards.

This template generates a cleanup function that closes an HDF5 ID using the specified close function.

Parameters

closeFuncThe HDF5 close function to call
idPointer to the ID to close