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

# std::is\_trivial(3)

## NAME

std::is\_trivial\< \_Tp \>

## SYNOPSIS

\#include \<type\_traits\>

## Detailed Description

### template\<typename \_Tp\>

struct std::is\_trivial\< \_Tp \>"is\_trivial

**Deprecated**

Deprecated in C++26. Use a combination of one or more more specialized type traits instead, such as is\_trivially\_default\_constructible, is\_trivially\_copy\_constructible, is\_trivially\_copy\_assignable, etc., depending on the exact check(s) needed.

## Author

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