29 Input/output library [input.output]

29.11 File systems [filesystems]

29.11.13 Filesystem operation functions [fs.op.funcs]

29.11.13.24 Is socket [fs.op.is.socket]

bool is_socket(file_status s) noexcept;
Returns: s.type() == file_­type​::​socket.
bool is_socket(const path& p); bool is_socket(const path& p, error_code& ec) noexcept;
Returns: is_­socket(status(p)) or is_­socket(status(p, ec)), respectively.
The signature with argument ec returns false if an error occurs.
Throws: As specified in [fs.err.report].