代码搜索:explicit

找到约 10,000 项符合「explicit」的源代码

代码结果 10,000
www.eeworm.com/read/470693/1456778

c explicit1.c

// { dg-do link } // { dg-options "-fno-implicit-templates" } template struct C { ~C(); }; template C::~C() {} struct X { C *p; ~X() { delete p; } }; template class
www.eeworm.com/read/470693/1456901

c explicit-instantiation.c

// Contributed by Gabriel Dos Reis // Origin: Jens.Maurer@gmx.net // { dg-do compile } // Fixed: PR 3381 namespace N { template class A { }; } template class ::N
www.eeworm.com/read/470693/1457102

c explicit1.c

// Origin: Jason Merrill struct A { A (); explicit A (int); }; int main () { const A& r = 1; // ERROR - no suitable constructor }
www.eeworm.com/read/470693/1457641

c explicit1.c

// Build don't link: // GROUPS passed templates template void foo(T t) {} void bar() { (void (*)(double)) &foo; }
www.eeworm.com/read/470693/1457650

c explicit56.c

template T* create (); template T* create2() { return create(); } template T* create () { return new T; } int main() { int *p = create2(); }
www.eeworm.com/read/470693/1457653

c explicit72.c

// Build don't link: // Contributed by Reid M. Pinchback // Adapted by Alexandre Oliva // plain char, signed char and unsigned char are distinct types template
www.eeworm.com/read/470693/1457659

c explicit4.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/1457683

c explicit60.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/470693/1457695

c explicit23.c

// Build don't run: // GROUPS passed templates // Special g++ Options: -ansi -pedantic-errors -w template int foo(T t) { return 1; } template int foo(int i) { return 0; } int main(
www.eeworm.com/read/470693/1457698

c explicit10.c

// Build don't link: // GROUPS passed templates // Special g++ Options: -ansi -pedantic-errors -w template void foo(T t); int main() { foo(3.0); }