# std::messages_base

> C++ Atlas: `cppatlas.com/w/cpp/locale/messages_base` | Source: https://en.cppreference.com/w/cpp/locale/messages_base | Domain: Localization

The class std::messages_base provides a type definition which is inherited and used by the std::messages facets.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <locale>
class messages_base;
```

The class `std::messages_base` provides a type definition which is inherited and used by the `std::messages` facets.

### Member types

**Member type — Definition**

- `catalog`: An unspecified signed integer type

### Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

| DR | Applied to | Behavior as published | Correct behavior |
| --- | --- | --- | --- |
| LWG 2028 | C++98 | `catalog` was defined as `int` | defined as an unspecified signed integer type[1] |

1. ↑ The catalog type `nl_catd` used in POSIX messaging API is a typedef of an unspecified type.

### See also

- [`messages`](https://en.cppreference.com/w/cpp/locale/messages): implements retrieval of strings from message catalogs (class template)

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