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

# std::underlying\_type(3cxx)

The underlying type of an enum.

## NAME

std::underlying\_type\< \_Tp \> - The underlying type of an enum.

## SYNOPSIS

`#include <type_traits>`

Inherits \_\_underlying\_type\_impl\< \_Tp \>.

## Detailed Description

### template\<typename \_Tp\>

struct std::underlying\_type\< \_Tp \>"The underlying type of an enum.

## Author

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