6 #ifndef UNIQUEFD_HPP_INCLUDE
7 #define UNIQUEFD_HPP_INCLUDE
A wrapper to close a file descriptor when the descriptor goes out of scope.
Definition: UniqueFd.hpp:13
~UniqueFd()
Close the wrapped fd if it is valid.
Definition: UniqueFd.cpp:29
UniqueFd(UniqueFd const &)=delete
int get()
Get the wrapped raw fd (e.g., to call IO functions on it)
Definition: UniqueFd.cpp:41
UniqueFd & operator=(UniqueFd const &)=delete