UNISTDX_IO_FD_TYPE
struct std::hash<::sys::fd_type >

Specialisation of std::hash for sys::fd_type.

Base classes
  • public std::hash< int >
Types
  • using argument_type = ::sys::fd_type

    Hash function argument type.

  • using result_type = size_t

    Hash function return value type.

Methods
struct sys::fd_type

Wrapper for system file descriptor type (int).

Fields
  • int fd

    File descriptor.

Methods
  • write(const void * buf, size_t n) const -> ssize_t
  • read(void * buf, size_t n) const -> ssize_t
  • operator int() const -> constexpr

    Implicitly cast to integer.

  • fd_type(int fd) -> constexpr

    Construct file descriptor with value fd.

  • fd_type() -> constexpr

    Construct file descriptor with value -1.

operator<<(std::ostream & out, const fd_type & rhs) -> std::ostream &
operator>>(std::istream & in, fd_type & rhs) -> std::istream &