答案 0 :(得分:5)
鉴于琐碎的概念定义:
template <class T> concept bool C = true;
我们可以将相同的函数模板f
声明为:
template <class T> requires C<T> void f(T);
template <class T> void f(T) requires C<T>;
template <C T> void f(T); // colloquially known as "terse" syntax
C{T} void f(T); // template introduction syntax
void f(C); // abbreviated function template syntax