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

# std::hash(3cxx)

Primary class template hash.

## NAME

std::hash\< \_Tp \> - Primary class template hash.

## SYNOPSIS

`#include <functional>`

Inherits std::\_\_hash\_enum\< \_Tp, bool \>.

## Detailed Description

### template\<typename \_Tp\>

struct std::hash\< \_Tp \>"Primary class template hash.

Primary class template hash, usable for enum types only.

## Author

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