代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4673396
c using2.c
// { dg-do assemble }
struct X{
void f();
};
struct Y:X{
void f(int);
void f();
using X::f;
};
www.eeworm.com/read/233448/4673595
c using1.c
// { dg-do assemble }
class D2;
class B {
private:
int a; // { dg-error "" } B::a is private
protected:
int b;
friend class D2;
};
class D : public B { // { dg-error "" } within this context
www.eeworm.com/read/233448/4673610
c using3.c
// { dg-do assemble }
struct A{
A();
};
typedef struct {
A i;
} S;
struct B: S{
using S::S; // { dg-error "" } no such field
};
www.eeworm.com/read/233448/4673657
c using5.c
// { dg-do assemble }
// Based on bug report by Klaus-Georg Adams
//
struct bar {
typedef bar t;
};
struct foo : bar {
using bar::t;
t field;
t
www.eeworm.com/read/233448/4674062
c using2.c
// { dg-do assemble }
//
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 May 2001
// Bug 2184. Using decls in templates weren't do
www.eeworm.com/read/233448/4674338
c using1.c
// { dg-do run }
// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Feb 2001
// Bug 1981. using declarations in namespace scope
www.eeworm.com/read/233448/4674504
c using9.c
// { dg-do assemble }
// Test for proper merging of functions from multiple using directives.
namespace standard
{ void print(int) {}
void dump(int) {}
}
namespace A { using standard::print; }
www.eeworm.com/read/233448/4674508
c using4.c
// { dg-do assemble }
//Build don't link
#include
namespace csp {
using namespace std::vector; // { dg-error "" } vector is not a namespace
}
www.eeworm.com/read/233448/4674511
c using13.c
// { dg-do run }
namespace A{
void foo(int){}
}
namespace B{
void foo(bool){}
}
void bar()
{
using B::foo;
using A::foo;
foo(true);
}
namespace Foo {
template void Hello(N) {}
}
www.eeworm.com/read/233448/4674521
c using8.c
// { dg-do assemble }
namespace M {
int i;
}
namespace N {
using namespace M;
}
using namespace N;
int j = i;
namespace O{
int k;
}
namespace N {
using namespace O;
}
int l = k;