nixd
|
File Descriptor RAII wrapper. More...
#include <AutoCloseFD.h>
Public Types | |
using | FDTy = int |
Public Member Functions | |
AutoCloseFD (FDTy FD) | |
AutoCloseFD (const AutoCloseFD &)=delete | |
AutoCloseFD (AutoCloseFD &&That) noexcept | |
bool | isReleased () const |
~AutoCloseFD () | |
FDTy | get () const |
void | release () |
Static Public Member Functions | |
static bool | isReleased (FDTy FD) |
File Descriptor RAII wrapper.
Definition at line 8 of file AutoCloseFD.h.
using nixd::util::AutoCloseFD::FDTy = int |
Definition at line 10 of file AutoCloseFD.h.
nixd::util::AutoCloseFD::AutoCloseFD | ( | FDTy | FD | ) |
Definition at line 24 of file AutoCloseFD.cpp.
|
delete |
|
noexcept |
Definition at line 12 of file AutoCloseFD.cpp.
nixd::util::AutoCloseFD::~AutoCloseFD | ( | ) |
Definition at line 7 of file AutoCloseFD.cpp.
|
nodiscard |
Definition at line 16 of file AutoCloseFD.cpp.
|
nodiscard |
|
static |
Definition at line 20 of file AutoCloseFD.cpp.
void nixd::util::AutoCloseFD::release | ( | ) |
Definition at line 18 of file AutoCloseFD.cpp.