[fs.op.is.socket] (original) (raw)
31 Input/output library [input.output]
31.12 File systems [filesystems]
31.12.13 Filesystem operation functions [fs.op.funcs]
31.12.13.24 Is socket [fs.op.is.socket]
bool filesystem::is_socket(file_status s) noexcept;
Returns: s.type() == file_type::socket.
bool filesystem::is_socket(const path& p);bool filesystem::is_socket(const path& p, error_code& ec) noexcept;
Returns: is_socket(status(p)) oris_socket(status(p, ec)), respectively.
The signature with argumentec returns false if an error occurs.