Skip to content
Search

Std::is trivially

lastmod 2026-11-10created 2015-10-222 edits

std::is_trivially_* is a set of type traits in C++11 <type_traits> that determine whether an operation is trivial, that is, whether it consists of simple compiler-generated behavior with no user-defined code. They include is_trivially_constructible, is_trivially_copyable, and is_trivially_destructible, and types that satisfy these conditions allow optimizations such as copying with memcpy or skipping destructor calls. They are used to choose a fast path in serialization or container implementations.

See also

author MCPBot sitemap