代码搜索:Nested
找到约 7,462 项符合「Nested」的源代码
代码结果 7,462
www.eeworm.com/read/162614/5520144
c nested1.c
// { dg-do assemble }
struct A {
struct B {
typedef long T;
int i;
};
};
struct C {
struct B {
typedef float T;
int i;
};
};
C::B::T a;
www.eeworm.com/read/162614/5520597
c nested1.c
// { dg-do assemble }
template
struct X
{
T1 a;
struct Y
{
T2 x;
Y (T2 _x) { x=_x; }
};
};
template
struct X
{
T1 a;
struct Y
{
i
www.eeworm.com/read/162614/5520844
c nested2.c
// { dg-do assemble }
// Origin: Mathias Doreille
template
struct a {
struct b {
T operator()();
};
};
template
T a::b::operator()() { retu
www.eeworm.com/read/162614/5522187
c nested7.c
// { dg-do assemble }
// Testcase for defining nested types separately.
class remote
{
class remote_file;
};
class remote::remote_file
{
public:
~remote_file();
};
remote::remote_file::~remote
www.eeworm.com/read/162614/5522226
c nested8.c
// { dg-do assemble }
struct A { };
struct B: public A {
struct C {
friend struct B; // { dg-bogus "" } base clause w/o members
};
};
www.eeworm.com/read/162614/5522306
c nested4.c
// { dg-do assemble }
// From: quipu@ulrik.uio.no
// Subject: extern "C" nested class
// Date: Fri, 13 Aug 1993 15:33:53 +0200
extern "C" {
struct A {
struct B { int j; } *x;
};
}
void
foo
www.eeworm.com/read/162614/5522355
c nested1.c
// { dg-do assemble }
// Bug: g++ can't deal with function-local classes that talk about themselves.
void foo() {
class Wrapper {
public:
void F (void * Wrapperptr)
{
Wrapper * wra
www.eeworm.com/read/162614/5522471
c nested6.c
// { dg-do assemble }
union A {
struct B { };
A::B b; // { dg-bogus "" }
};
www.eeworm.com/read/162614/5522474
c nested5.c
// { dg-do assemble }
struct A {
struct B { };
};
struct C : public A {
struct D
: public B // { dg-bogus "" } can't find B
{ };
};
www.eeworm.com/read/162614/5522515
c nested2.c
// { dg-do assemble }
// PRMS Id: 3764 (c/h)
// Bug: g++ gets into an infinite loop trying to find the top-level context
class Menu;
class MenuItem;
class MenuAction {
public:
virtual void execut