---
name: "std::type_index"
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::type_index"
---

# std::type\_index(3)

Class type\_index.

## NAME

std::type\_index - Class type\_index.

## SYNOPSIS

\#include \<typeindex\>

### Public Member Functions

**type\_index** (const **type\_info** &\_\_rhs) noexcept\
 size\_t **hash\_code** () const noexcept\
 const char \* **name** () const noexcept\
 bool **operator!=** (const type\_index &\_\_rhs) const noexcept\
 bool **operator\<** (const type\_index &\_\_rhs) const noexcept\
 bool **operator\<=** (const type\_index &\_\_rhs) const noexcept\
 bool **operator==** (const type\_index &\_\_rhs) const noexcept\
 bool **operator\>** (const type\_index &\_\_rhs) const noexcept\
 bool **operator\>=** (const type\_index &\_\_rhs) const noexcept\

## Detailed Description

Class type\_index.

The class type\_index provides a simple wrapper for type\_info which can be used as an index type in associative containers (23.6) and in unordered associative containers (23.7).

## Author

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