---
name: "__gnu_cxx::Char_types"
section: "3"
platform: "linux"
package: "libstdc++6-doc"
version: "3.4.6-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/__gnu_cxx::Char_types"
---

# \_\_gnu\_cxx::Char\_types(3)

Mapping from character type to associated types.

## NAME

\_\_gnu\_cxx::Char\_types - Mapping from character type to associated types.

## SYNOPSIS

`#include <char_traits.h>`

### Public Types

typedef unsigned long **int\_type**\
 typedef **std::streampos** **pos\_type**\
 typedef **std::streamoff** **off\_type**\
 typedef std::mbstate\_t **state\_type**\

## Detailed Description

### template\<class CharT\> struct \_\_gnu\_cxx::Char\_types\< CharT \>

Mapping from character type to associated types.

**Note:**

This is an implementation class for the generic version of **char\_traits**. It defines int\_type, off\_type, pos\_type, and state\_type. By default these are unsigned long, streamoff, streampos, and **mbstate\_t**. Users who need a different set of types, but who don't need to change the definitions of any function defined in **char\_traits**, can specialize **\_\_gnu\_cxx::Char\_types** while leaving **\_\_gnu\_cxx::char\_traits** alone.

Definition at line 63 of file char\_traits.h.

## Author

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