代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/340665/3273748
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/340665/3273767
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/340665/3273837
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/340665/3274034
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/340665/3274049
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/340665/3274095
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/340665/3274501
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/340665/3274777
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/340665/3274945
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; }
www.eeworm.com/read/340665/3274949
c using4.c
//Build don't link
#include
namespace csp {
using namespace std::vector; // ERROR - vector is not a namespace
}