---
name: "std::__cxx11_collate_byname"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::__cxx11_collate_byname"
---

# std::\_\_cxx11\_collate\_byname(3)

class collate\_byname \[22.2.4.2\].

## NAME

std::\_\_cxx11::collate\_byname\< \_CharT \> - class collate\_byname \[22.2.4.2\].

## SYNOPSIS

\#include \<locale\>

### Public Types

typedef \_CharT **char\_type**\
 Public typedefs.  typedef **basic\_string**\< \_CharT \> **string\_type**\
 Public typedefs.

### Public Member Functions

**collate\_byname** (const char \*\_\_s, size\_t \_\_refs=0)\
 **collate\_byname** (const **string** &\_\_s, size\_t \_\_refs=0)\
 int **\_M\_compare** (const char \*, const char \*) const throw()\
 int **\_M\_compare** (const wchar\_t \*, const wchar\_t \*) const throw()\
 size\_t **\_M\_transform** (char \*, const char \*, size\_t) const throw()\
 size\_t **\_M\_transform** (wchar\_t \*, const wchar\_t \*, size\_t) const throw()\

## Detailed Description

### template\<typename \_CharT\>

class std::\_\_cxx11::collate\_byname\< \_CharT \>"class collate\_byname \[22.2.4.2\].

## Member Typedef Documentation

### template\<typename \_CharT\> typedef \_CharT std::\_\_cxx11::collate\_byname\< \_CharT \>::char\_type

Public typedefs.

### template\<typename \_CharT\> typedef basic\_string\<\_CharT\> std::\_\_cxx11::collate\_byname\< \_CharT \>::string\_type

Public typedefs.

## Author

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