c_plus_plus_concepts
Error: Fetching the article from Wikipedia failed.

C++ Concepts library

Return to Concept

https://en.cppreference.com/w/cpp/keyword/concept

C++ concepts

https://en.cppreference.com/w/cpp/concepts

The concepts library provides definitions of fundamental library concepts that can be used to perform compile-time validation of template arguments and perform function dispatch based on properties of types. These concepts provide a foundation for equational reasoning in programs.

Most concepts in the standard library impose both syntactic and semantic requirements. It is said that a standard concept is satisfied if its syntactic requirements are met, and is modeled if it is satisfied and its semantic requirements (if any) are also met.

In general, only the syntactic requirements can be checked by the compiler. If the validity or meaning of a program depends whether a sequence of template arguments models a concept, and the concept is satisfied but not modeled, or if a semantic requirement is not met at the point of use, the program is ill-formed, cpp/language/ndr | no diagnostic required.

Additional concepts can be found in C.2B.2B20_iterator_concepts | the iterators library, Algorithm_concepts_and_utilities | the algorithms library, and Range_concepts | the ranges library.


Cloud Monk is Retired ( for now). Buddha with you. © 2025 and Beginningless Time - Present Moment - Three Times: The Buddhas or Fair Use. Disclaimers

SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.


c_plus_plus_concepts.txt · Last modified: 2025/02/01 07:13 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki