---
name: "std::bad_function_call"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::bad_function_call"
---

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

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.
