---
name: "std::messages_byname"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::messages_byname/3cxx"
---

# std::messages\_byname(3cxx)

class messages\_byname \[22.2.7.2\].

## NAME

std::messages\_byname\< \_CharT \> - class messages\_byname \[22.2.7.2\].

## SYNOPSIS

`#include <locale>`

Inherits **std::messages\< \_CharT \>**.

### Public Types

**typedef** int **catalog**\
 **typedef** \_CharT **char\_type**\
 **typedef** **basic\_string**\< \_CharT \> **string\_type**\

### Public Member Functions

**messages\_byname** (const char \***\_\_s**, size\_t **\_\_refs**=0)\
 **messages\_byname** (const **string** &**\_\_s**, size\_t **\_\_refs**=0)\
 **void** **close** (catalog \_\_c) const\
 **string\_type** **get** (catalog \_\_c, int **\_\_set**, int **\_\_msgid**, const **string\_type** &**\_\_s**) const\
 catalog **open** (const **basic\_string**\< char \> &, const **locale** &, const char \*) const\
 catalog **open** (const **basic\_string**\< char \> &**\_\_s**, const **locale** &**\_\_loc**) const\

### Static Public Attributes

**static** **locale::id** **id**\
 Numpunct facet id.

### Protected Member Functions

**string\_type** **\_M\_convert\_from\_char** (char \*) const\
 char \* **\_M\_convert\_to\_char** (const **string\_type** &**\_\_msg**) const\
 **virtual** **void** **do\_close** (catalog) const\
 **void** **do\_close** (catalog) const\
 **void** **do\_close** (catalog) const\
 **string** **do\_get** (catalog, int, int, const **string** &) const\
 Specializations for required instantiations.  **virtual** **string\_type** **do\_get** (catalog, int, int, const **string\_type** &**\_\_dfault**) const\
 **wstring** **do\_get** (catalog, int, int, const **wstring** &) const\
 **virtual** catalog **do\_open** (const **basic\_string**\< char \> &, const **locale** &) const\
 **messages**\< char \>::catalog **do\_open** (const **basic\_string**\< char \> &, const **locale** &) const\
 **messages**\< wchar\_t \>::catalog **do\_open** (const **basic\_string**\< char \> &, const **locale** &) const\

### Static Protected Member Functions

**static** \_\_c\_locale **\_S\_clone\_c\_locale** (\_\_c\_locale &**\_\_cloc**)  **throw** ()\
 **static** **void** **\_S\_create\_c\_locale** (\_\_c\_locale &**\_\_cloc**, const char \***\_\_s**, \_\_c\_locale **\_\_old**=0)\
 **static** **void** **\_S\_destroy\_c\_locale** (\_\_c\_locale &**\_\_cloc**)\
 **static** \_\_c\_locale **\_S\_get\_c\_locale** ()\
 **static** const char \* **\_S\_get\_c\_name** ()  **throw** ()\
 **static** \_\_c\_locale **\_S\_lc\_ctype\_c\_locale** (\_\_c\_locale **\_\_cloc**, const char \***\_\_s**)\

### Protected Attributes

\_\_c\_locale **\_M\_c\_locale\_messages**\
 const char \* **\_M\_name\_messages**\

## Detailed Description

### template\<typename \_CharT\>

class std::messages\_byname\< \_CharT \>"class messages\_byname \[22.2.7.2\].

## Member Function Documentation

### string std::messages\< char \>::do\_get (catalog, int, int, const string &) const` [protected]`, ` [inherited]`

Specializations for required instantiations.

## Member Data Documentation

### template\<typename \_CharT \> locale::id std::messages\< \_CharT \>::id` [static]`, ` [inherited]`

Numpunct facet id.

## Author

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