代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1446161
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/470720/1446163
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 ()
{
www.eeworm.com/read/470720/1446171
c explicit57.c
extern "C" void abort ();
int a = 0;
template void f ();
template void g ()
{
if (a)
abort ();
}
template void g ()
{
}
template class C
{
public:
www.eeworm.com/read/470720/1446178
c explicit16.c
// Build don't link:
// GROUPS passed templates
template
class Array;
template
class ArraySectionInfo {
public:
enum { rank = 0 };
};
template
class SliceInfo {
www.eeworm.com/read/470720/1446187
c explicit20.c
// Build don't link:
// GROUPS passed templates
template
T foo(T t);
template
int foo(char c); // ERROR - does not match any template declaration
www.eeworm.com/read/470720/1446198
c explicit28.c
// Build don't run:
// GROUPS passed templates
template
int foo(T t) { return 1; }
template
int foo(int i) { return 0; }
int main()
{
return (*((int (*)(int)) &foo))(3);
}
www.eeworm.com/read/470720/1446204
c explicit54.c
extern "C" void abort ();
template inline int fact2 ();
template inline int fact ()
{
return a * fact2 ();
}
template inline int fact ()
{
return 1;
}
template
www.eeworm.com/read/470720/1446219
c explicit37.c
// Build don't run:
// GROUPS passed templates
class ostream {};
template
class S;
template
void operator
www.eeworm.com/read/470720/1446252
c explicit19.c
// Build don't run:
// GROUPS passed templates
// Special g++ Options: -ansi -pedantic-errors -w
template
int foo(T t);
template
int foo(int i) { return 0; }
int main()
{
return
www.eeworm.com/read/470720/1446273
c explicit66.c
void f(int) {}
void f(double);
template
void foo() {}
int main()
{
foo();
}