代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4580384
c using4.c
// { dg-do assemble }
// Based on a testcase by Martin Bachtold
struct foo {
void m();
};
struct bar : foo {
using foo::m;
void m(int);
};
void f() {
bar b;
www.eeworm.com/read/240162/4580468
c using8.c
// { dg-do assemble }
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 14 Nov 2000
// We rejected using decls bringing in functions fr
www.eeworm.com/read/240162/4580491
c using7.c
// { dg-do assemble }
class A {
protected:
static void f() {};
};
class B : A {
public:
using A::f;
void g() {
f();
A::f();
}
struct C {
void g() {
f();
A::f();
www.eeworm.com/read/240162/4580510
c using6.c
// { dg-do run }
// Test of class-scope using-declaration for functions.
#define assert(COND) if (!(COND)) return 1
struct A {
int f(int) { return 1; }
int f(char) { return 2; }
};
struct B {
www.eeworm.com/read/240162/4580579
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/240162/4580776
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/240162/4580791
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/240162/4580837
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/240162/4581242
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/240162/4581518
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