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

# std::bad\_function\_call(3cxx)

Exception class thrown when class template function's operator() is called with an empty target.

## NAME

std::bad\_function\_call - Exception class thrown when class template function's operator() is called with an empty target.

## SYNOPSIS

`#include <functional>`

Inherits **std::exception**.

### Public Member Functions

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

## Detailed Description

Exception class thrown when class template function's operator() is called with an empty target.

## Member Function Documentation

### const char \* std::bad\_function\_call::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.
