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

# std::bad\_typeid(3cxx)

Thrown when a NULL pointer in a typeid expression is used.

## NAME

std::bad\_typeid - Thrown when a NULL pointer in a `typeid` expression is used.

## SYNOPSIS

`#include <typeinfo>`

Inherits **std::exception**.

### Public Member Functions

**virtual** const char \* **what** () const noexcept\

## Detailed Description

Thrown when a NULL pointer in a `typeid` expression is used.

## Member Function Documentation

### virtual const char \* std::bad\_typeid::what () const` [virtual]`, ` [noexcept]`

Returns a C-style character string describing the general cause of the current error. \

Reimplemented from **std::exception**.

## Author

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