---
name: "std::enable_if"
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::enable_if"
---

# std::enable\_if(3)

Define a member typedef type only if a boolean constant is true.

## NAME

std::enable\_if\< bool, \_Tp \> - Define a member typedef type only if a boolean constant is true.

## SYNOPSIS

\#include \<type\_traits\>

## Detailed Description

### template\<bool, typename \_Tp = void\>

struct std::enable\_if\< bool, \_Tp \>"Define a member typedef type only if a boolean constant is true.

## Author

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