代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470693/1458279
c explicit58.c
extern "C" void abort ();
template void f ();
template void g ()
{
abort ();
}
template void g ()
{
abort ();
}
template class C
{
public:
template
www.eeworm.com/read/470693/1458281
c explicit26.c
// Build don't run:
// GROUPS passed templates
template
int foo(T t) { return 1; }
template
int foo(int i) { return 0; }
int main()
{
(int (*)(int)) &foo;
}
www.eeworm.com/read/470693/1458284
c explicit82.c
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 7 Sep 2000
// Bug 508. We failed to set/clear lastiddecl appropria
www.eeworm.com/read/470693/1458307
c explicit62.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/470693/1458332
c explicit29.c
// Build don't run:
// GROUPS passed templates
template
int foo(T) { return 0; }
int foo(int);
int main()
{
return foo(3);
}
www.eeworm.com/read/470693/1458336
c explicit17.c
// Build don't link:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
template
void foo(U u, T t);
template
void foo(T t);
template
www.eeworm.com/read/470693/1458339
c explicit22.c
// Build don't link:
// GROUPS passed templates
template
T foo(T t, U* u);
template
T foo(T t, T* u);
template
int foo(int, int*);
www.eeworm.com/read/470693/1458363
c explicit14.c
// Build don't link:
// GROUPS passed templates
template
struct S
{
template
typename U::R foo(U u);
};
void bar()
{
S si;
}
www.eeworm.com/read/470693/1458387
c explicit2.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t) {}
void bar()
{
(void (*)(int)) (void (*)(double)) &foo;
}
www.eeworm.com/read/470693/1458792
c explicit1.c
// $7.1.2 disallows explicit on anything but declarations of
// constructors ... including friends.
class foo { public: foo(); };
class bar { public: friend explicit foo::foo(); }; // ERROR - explicit