A concept is a named, compile-time predicate on template arguments, defined by template <typename T> concept C = expression;, where the expression may combine other concepts and requires expressions listing operations that must be valid. A constraint attaches concepts to a template, as template <C T> or requires C<T>: the template is then considered only for arguments that satisfy them. Concepts are a C++20 feature.
书籍暂未推出简体中文版——当前显示英文版。
Computer Science · 术语表
什么是 Concept, constraint?
又称: concept (C++) · constraint