---
name: "std::::error_category"
section: "3cxx"
platform: "linux"
package: "libstdc++-11-doc"
version: "11.3.0-12"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/std::::error_category"
---

# std::::error\_category(3cxx)

## NAME

std::error\_category

## SYNOPSIS

### Public Member Functions

**error\_category** (const **error\_category** &)=delete\
 virtual **error\_condition** **default\_error\_condition** (int \_\_i) const noexcept\
 virtual bool **equivalent** (const **error\_code** &\_\_code, int \_\_i) const noexcept\
 virtual bool **equivalent** (int \_\_i, const **error\_condition** &\_\_cond) const noexcept\
 virtual **string** **message** (int) const =0\
 virtual const char \* **name** () const noexcept=0\
 bool **operator!=** (const **error\_category** &\_\_other) const noexcept\
 bool **operator\<** (const **error\_category** &\_\_other) const noexcept\
 **error\_category** & **operator=** (const **error\_category** &)=delete\
 bool **operator==** (const **error\_category** &\_\_other) const noexcept\

## Detailed Description

Abstract base class for types defining a category of error codes.

An error category defines a context that give meaning to the integer stored in an `error_code` or `error_condition` object. For example, the standard `errno` constants such a `EINVAL` and `ENOMEM` are associated with the 'generic' category and other OS-specific error numbers are associated with the 'system' category, but a user-defined category might give different meanings to the same numerical values.

**Since**

C++11

Definition at line **97** of file **system\_error**.

## Member Function Documentation

### bool std::error\_category::operator!= (const error\_category & \_\_other) const` [inline]`, ` [noexcept]`

Definition at line **153** of file **system\_error**.

### bool std::error\_category::operator\< (const error\_category & \_\_other) const` [inline]`, ` [noexcept]`

Definition at line **156** of file **system\_error**.

### bool std::error\_category::operator== (const error\_category & \_\_other) const` [inline]`, ` [noexcept]`

Definition at line **144** of file **system\_error**.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
