代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/470720/1445278
c using8.c
// Build don't link:
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 14 Nov 2000
// We rejected using decls bringing in functions from
www.eeworm.com/read/470720/1445301
c using7.c
// Build don't link:
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/470720/1445320
c using6.c
// 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 {
int f(double) {
www.eeworm.com/read/470720/1445390
c using2.c
// Build don't link:
struct X{
void f();
};
struct Y:X{
void f(int);
void f();
using X::f;
};
www.eeworm.com/read/470720/1445587
c using1.c
class D2;
class B {
private:
int a; // ERROR - B::a is private
protected:
int b;
friend class D2;
};
class D : public B { // ERROR - within this context
public:
using B::a;
using B::b;
};
www.eeworm.com/read/470720/1445602
c using3.c
// Build don't link:
struct A{
A();
};
typedef struct {
A i;
} S;
struct B: S{
using S::S; // ERROR - no such field
};
www.eeworm.com/read/470720/1445648
c using5.c
// Build don't link:
// Based on bug report by Klaus-Georg Adams
//
struct bar {
typedef bar t;
};
struct foo : bar {
using bar::t;
t field;
t me
www.eeworm.com/read/470720/1446054
c using2.c
// Build don't link:
//
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 May 2001
// Bug 2184. Using decls in templates weren't doin
www.eeworm.com/read/470720/1446330
c using1.c
// Copyright (C) 2001 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Feb 2001
// Bug 1981. using declarations in namespace scope were not remembered.
na
www.eeworm.com/read/470720/1446498
c using9.c
// Test for proper merging of functions from multiple using directives.
// Build don't link:
namespace standard
{ void print(int) {};
void dump(int) {};
}
namespace A { using standard::print; }