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

# std::type\_index(3cxx)

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.
