代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1445864
c explicit52.c
extern "C" void abort ();
template inline int fact ()
{
return a * fact ();
}
template inline int fact ()
{
return 1;
}
int main()
{
if (fact () != 6 || fact () != 1
www.eeworm.com/read/470720/1445870
c explicit5.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t) {}
template
struct S {};
template
void bar(T t)
{
void (*f)(S ) = &foo;
}
void baz(
www.eeworm.com/read/470720/1445876
c explicit78.c
// Build don't link:
template
struct A {
};
template
struct B {
operator A ();
operator B ();
};
template
void f(B);
template
void
www.eeworm.com/read/470720/1445912
c explicit11.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t);
template
struct S {};
int main()
{
S si;
foo(si);
}
www.eeworm.com/read/470720/1445925
c explicit36.c
// Build don't run:
// GROUPS passed templates
template
void foo(T);
class S {
friend void foo(int);
int i;
};
template
void foo(int)
{
S s;
s.i = 3;
}
int main()
{
foo(
www.eeworm.com/read/470720/1445928
c explicit83.c
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 7 Sep 2000
// Bug 512. Conversion operator functions in template_i
www.eeworm.com/read/470720/1445944
c explicit30.c
// Build don't link:
// GROUPS passed templates
template
void foo(T, T*);
void bar()
{
double d;
(*((void (*)(int, double*)) (void (*)(int, int*)) &foo))(3, &d);
}
www.eeworm.com/read/470720/1445948
c explicit50.c
extern "C" void abort ();
template int f ()
{
return sizeof(T);
}
int main ()
{
if (f () != sizeof(long)
|| f () != sizeof(char)
|| f () != sizeof(long)
www.eeworm.com/read/470720/1445952
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/470720/1445987
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();
}