代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1457898
c explicit53.c
extern "C" void abort ();
template inline int fact ();
template inline int fact ();
template inline int fact ()
{
return a * fact ();
}
template inline int fact (
www.eeworm.com/read/470693/1457933
c explicit32.c
// Build don't link:
// GROUPS passed templates
template
struct S
{
};
template
struct S
{
void foo();
};
void S::foo()
{
}
void bar()
{
S si;
si.foo();
}
www.eeworm.com/read/470693/1457947
c explicit9.c
// Build don't link:
// GROUPS passed templates
void foo(int);
void bar()
{
foo(3); // ERROR - foo is not a template.
}
www.eeworm.com/read/470693/1457950
c explicit39.c
template
void f(int i);
void g()
{
f(3); // ERROR - no matching function.
}
www.eeworm.com/read/470693/1457962
c explicit27.c
// Build don't run:
// GROUPS passed templates
template
void foo(T t);
template
void foo(int i) {}
int main()
{
(void (*)(int)) &foo;
}
www.eeworm.com/read/470693/1457965
c explicit40.c
extern "C" void abort();
template
void f(int j);
template
void f(int j);
template
void f(int j)
{
abort();
}
template
void f(int j)
{
}
www.eeworm.com/read/470693/1457971
c explicit64.c
extern "C" void abort ();
template void f ()
{
abort ();
}
template void f ()
{
}
template class C
{
friend void f ();
public:
void ff () { f ();
www.eeworm.com/read/470693/1457974
c explicit12.c
// Build don't run:
// Special g++ Options: -ansi -pedantic-errors -w
// GROUPS passed templates
template
struct S
{
template
void foo(T t);
};
template
template
void
www.eeworm.com/read/470693/1457981
c explicit41.c
template
void f(int i);
void g()
{
int i;
f(7); // ERROR - template argument 1 is invalid.
}
www.eeworm.com/read/470693/1457988
c explicit21.c
// Build don't link:
// GROUPS passed templates
template
T foo(T* t);
template
int foo(char c); // ERROR - does not match declaration.
template
int bar(); // ERROR - no t