代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/340665/3274539
c explicit25.c
// Build don't link:
// GROUPS passed templates
template
class S {};
template
void foo(T t, S);
void bar()
{
S s3;
foo("abc", s3);
}
www.eeworm.com/read/340665/3274543
c explicit63.c
extern "C" void abort ();
template void f ()
{
}
template class C
{
friend void f ();
public:
void ff () { f (); }
};
int main ()
{
C c;
c.ff();
}
www.eeworm.com/read/340665/3274546
c explicit38.c
template
void f(int j);
void g()
{
f(3); // ERROR - no matching function.
}
www.eeworm.com/read/340665/3274551
c explicit55.c
template T* create ()
{
return new T;
}
template T* create2()
{
return create();
}
int main()
{
int *p = create2();
}
www.eeworm.com/read/340665/3274577
c explicit35.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
struct S
{
template
void foo(T t);
};
template
void S::foo(int i) { }
int main
www.eeworm.com/read/340665/3274586
c explicit31.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
template
struct S
{
template
static double foo(U u) { return (double) u; }
};
www.eeworm.com/read/340665/3274592
c explicit59.c
extern "C" void abort ();
template void f ();
template void g ()
{
abort ();
}
template void g ()
{
abort ();
}
template class C
{
public:
void ff (
www.eeworm.com/read/340665/3274598
c explicit24.c
// Build don't link:
// GROUPS passed templates
template
int foo(T t);
int foo(int i) { return 0; } // ERROR - missing template
www.eeworm.com/read/340665/3274608
c explicit13.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
template
struct S
{
template
void foo(T t);
template
void bar(
www.eeworm.com/read/340665/3274610
c explicit75.c
// Test for not complaining about mismatches during unification.
// Build don't link:
template void f();
template void f();
extern void g(double);
void h ()
{