代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5520640
c explicit20.c
// { dg-do assemble }
// GROUPS passed templates
template
T foo(T t);
template
int foo(char c); // { dg-error "" } does not match any template declaration
www.eeworm.com/read/162614/5520651
c explicit28.c
// { dg-do link }
// GROUPS passed templates
template
int foo(T t) { return 1; }
template
int foo(int i) { return 0; }
int main()
{
return (*((int (*)(int)) &foo))(3);
}
www.eeworm.com/read/162614/5520657
c explicit54.c
// { dg-do run }
extern "C" void abort ();
template inline int fact2 ();
template inline int fact ()
{
return a * fact2 ();
}
template inline int fact ()
{
return 1;
www.eeworm.com/read/162614/5520672
c explicit37.c
// { dg-do link }
// GROUPS passed templates
class ostream {};
template
class S;
template
void operator
www.eeworm.com/read/162614/5520705
c explicit19.c
// { dg-do link }
// { dg-options "-ansi -pedantic-errors -w" }
// GROUPS passed templates
template
int foo(T t);
template
int foo(int i) { return 0; }
int main()
{
return foo
www.eeworm.com/read/162614/5520726
c explicit66.c
// { dg-do run }
void f(int) {}
void f(double);
template
void foo() {}
int main()
{
foo();
}
www.eeworm.com/read/162614/5520732
c explicit65.c
// { dg-do run }
extern "C" void abort ();
template void f ()
{
abort ();
}
template void f ()
{
abort ();
}
template void f (int)
{
abort ();
}
template voi
www.eeworm.com/read/162614/5520745
c explicit51.c
// { dg-do run }
extern "C" void abort ();
template int fact ()
{
return 0;
}
template int fact ()
{
return 1;
}
int main()
{
if (fact () != 0 || fact () != 1
|| fa
www.eeworm.com/read/162614/5520747
c explicit73.c
// { dg-do assemble }
// by Alexandre Oliva
// According to [temp.expl.spec]/2, a template explicit specialization
// must be declared in the namespace that contains the decl
www.eeworm.com/read/162614/5520776
c explicit42.c
// { dg-do run }
extern "C" void abort(void);
template
void f(int i)
{
}
template
void f(int i)
{
abort();
}
int main()
{
f(3);
}