# std::error_code::category

> C++ Atlas: `cppatlas.com/w/cpp/error/error_code/category` | Source: https://en.cppreference.com/w/cpp/error/error_code/category | Domain: Diagnostics | Standards: C++11

Returns the error category of the error code.

## Official Specification Summary (cppreference)

```cpp
const std::error_category& category() const noexcept; // (since C++11)
```

Returns the error category of the error code.

### Parameters

(none)

### Return value

The error category of the error code.

### See also

- [`value`](https://en.cppreference.com/w/cpp/error/error_code/value): obtains the value of the `error_code` (public member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/error/error_code/category (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.