代码搜索:Struct
找到约 10,000 项符合「Struct」的源代码
代码结果 10,000
www.eeworm.com/read/162614/5518664
c thunk4.c
// PR c++/21123
struct A
{
A( const A &a);
const A& operator=( const A& a);
};
struct B
{
virtual A f();
};
struct C : virtual B
{
virtual A f();
A a;
};
A C::f()
{
return a;
}
www.eeworm.com/read/162614/5518713
c thunk5.c
// PR c++/21123
struct A
{
A(const A &a);
const A& operator=(const A& a);
};
struct B
{
virtual A f(A);
};
struct C : virtual B
{
virtual A f(A);
};
A C::f(A a)
{
return a;
}
www.eeworm.com/read/162614/5518746
c pr22358.c
/* { dg-do compile } */
struct a
{
virtual ~a();
};
struct b : virtual a { };
b a11;
www.eeworm.com/read/162614/5518972
c typename7.c
// PR c++/17501
template struct A;
template struct A
{
struct B
{
struct C
{
typedef int D;
};
};
};
template struct E
{
typename A::B::
www.eeworm.com/read/162614/5518982
c field1.c
struct A {
void (*f)(void);
};
template< typename R >
struct B : public A {
void g()
{
A::f();
}
};
template class B;
www.eeworm.com/read/162614/5519033
c crash9.c
struct A { };
struct B { };
A f(const B & b) {
return A();
}
template
B f(const A & a) { // { dg-error "" }
return B();
}
www.eeworm.com/read/162614/5519105
c spec18.c
// PR c++/17936
template struct A
{
void foo();
};
template struct A
{
void foo();
};
template void A::foo();
www.eeworm.com/read/162614/5519145
c assign1.c
// PR c++/16623
template
struct C
{
C& operator= (int);
};
template
C& C::operator= (int)
{
return *this;
}
C a;
www.eeworm.com/read/162614/5519161
c nested4.c
template struct A {
template struct B { typedef A X; };
};
template void f() {
typedef A::B::X X;
}
template void f ();
www.eeworm.com/read/162614/5519162
c overload8.c
// PR c++/24915
struct A
{
template void foo() {}
template int foo() {}
};