代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1457793
c explicit33.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t);
template
void foo(int) {};
void foo(int) {}
www.eeworm.com/read/470693/1457801
c explicit76.c
// Build don't link:
// Based on bug report by Simon A. Crase
// crash test - XFAIL *-*-*
struct foo {
template void bar();
};
template void foo::bar(); // get
www.eeworm.com/read/470693/1457810
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/470693/1457816
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/470693/1457822
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/470693/1457858
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/470693/1457871
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/470693/1457874
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/470693/1457890
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/470693/1457894
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)