Files
cppdraft_translate/cppdraft/syserr/errcat/derived.md
2025-10-25 03:02:53 +03:00

1.7 KiB

[syserr.errcat.derived]

19 Diagnostics library [diagnostics]

19.5 System error support [syserr]

19.5.3 Class error_category [syserr.errcat]

19.5.3.4 Program-defined classes derived from error_category [syserr.errcat.derived]

🔗

virtual const char* name() const noexcept = 0;

1

#

Returns: A string naming the error category.

🔗

virtual error_condition default_error_condition(int ev) const noexcept;

2

#

Returns: An object of type error_condition that corresponds to ev.

🔗

virtual bool equivalent(int code, const error_condition& condition) const noexcept;

3

#

Returns: true if, for the category of error represented by *this, code is considered equivalent to condition; otherwise, false.

🔗

virtual bool equivalent(const error_code& code, int condition) const noexcept;

4

#

Returns: true if, for the category of error represented by *this, code is considered equivalent to condition; otherwise, false.