代码搜索:explicit
找到约 10,000 项符合「explicit」的源代码
代码结果 10,000
www.eeworm.com/read/340665/3274741
c explicit73.c
// Build don't link:
// by Alexandre Oliva
// According to [temp.expl.spec]/2, a template explicit specialization
// must be declared in the namespace that contains the declar
www.eeworm.com/read/340665/3274770
c explicit42.c
extern "C" void abort(void);
template
void f(int i)
{
}
template
void f(int i)
{
abort();
}
int main()
{
f(3);
}
www.eeworm.com/read/340665/3274772
c explicit34.c
// Build don't link:
// GROUPS passed templates
template
void foo(T t);
template
void foo(int) {}; // ERROR - previously defined here.
template
void foo(int) {} // ERROR - dupli
www.eeworm.com/read/340665/3274773
c explicit61.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/3274776
c explicit77.c
// Build don't link:
template
struct S {};
template
struct S : public S, S {};
template
void f(S, S
www.eeworm.com/read/340665/3274779
c explicit15.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/340665/3274780
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/340665/3274782
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/340665/3274785
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/340665/3274808
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();
}