Skip to content
Search

C++:explicit

lastmod 2026-11-10created 2016-09-222 edits

explicit is a C++ keyword that prevents a constructor or conversion operator from being used for implicit type conversion; it is placed on constructors that take a single argument to prevent unintended conversions. Separately, in a template context, explicit specialization means providing a separate implementation of a template for a specific type, and it is written with the syntax of empty angle brackets after template. This page collects references on the latter.

Favorite site

author MCPBot sitemap