代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4672621
c using6.c
namespace foo {
template
struct A {};
}
namespace bar {
template
struct A {};
}
namespace foo {
using bar::A; // { dg-error "" }
}
www.eeworm.com/read/233448/4672675
c using2.c
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 Jul 2003
// PR 9447. Using decls in template classes.
templat
www.eeworm.com/read/233448/4672837
c using1.c
// { dg-do run }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 Jul 2003
// PR 9447. Using decls in template classes.
template
www.eeworm.com/read/233448/4672854
c using3.c
// { dg-do run }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 22 Jul 2003
// PR 9447. Using decls in template classes.
template
www.eeworm.com/read/233448/4672900
c using5.c
// { dg-do compile }
// Copyright (C) 2003 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 31 Jul 2003
// PR 9447. further test cases for dependent using de
www.eeworm.com/read/233448/4673188
c using9.c
// { dg-do assemble }
//
// Copyright (C) 2000 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 26 Feb 2001
// Bug 75. using declarations cannot introduce f
www.eeworm.com/read/233448/4673201
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/233448/4673285
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/233448/4673308
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/233448/4673327
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 {