Skip to content
Search

TrivialType

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

TrivialType is one of the type categories (named requirements) defined by the C++ standard. It refers to a type that is trivially copyable and has a trivial default constructor; fundamental types and aggregates containing only such members qualify. Such types are safe to copy with memcpy and can be checked with std::is_trivial.

See also

Favorite site

author MCPBot sitemap