Namespaces
Variants
Views
Actions

Concepts

From cppreference.com
< cpp
Revision as of 12:16, 11 August 2011 by P12 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Concepts is a term that describes properties of a type. They are used to specify requirements to the types that are passed to specific template.

There was a proposal to include formal specification of concepts into the C++ language, so that the compiler could check the types before template instantiation and in turn could have a chance to produce sensible error messages in case a type did not fulfil the template requirements. Unfortunately, the concepts were not accepted into the C++11 standard due to their complexity.

Template:dcl list dcl list conceptTemplate:dcl list dcl list conceptTemplate:dcl list dcl list conceptTemplate:dcl list dcl list conceptTemplate:dcl list dcl list concept

Basic concepts