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

# std::conditional(3)

Define a member typedef type to one of two argument types.

## NAME

std::conditional\< \_Cond, \_Iftrue, \_Iffalse \> - Define a member typedef type to one of two argument types.

## SYNOPSIS

\#include \<type\_traits\>

### Public Types

using **type**\

## Detailed Description

### template\<bool \_Cond, typename \_Iftrue, typename \_Iffalse\>

struct std::conditional\< \_Cond, \_Iftrue, \_Iffalse \>"Define a member typedef type to one of two argument types.

## Author

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