代码搜索:using 开发教程
找到约 10,000 项符合「using 开发教程」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4578990
c using1.c
void f();
namespace N {
using ::f;
}
bool b;
void g() {
b = N::f == ::f;
}
www.eeworm.com/read/240162/4579004
c using9.c
// { dg-do compile }
// Origin: C++ Standard Draft (7.3.3/12)
// PR c++/2294: using declarations should not conflict, but only cause
// an ambiguous overload set to be created.
namespace B {
void
www.eeworm.com/read/240162/4579008
c using4.c
// { dg-do compile }
// Origin: Richard Guenther
// PR c++/9432: ICE in validate_nonmember_using_decl when decl is a
// SCOPE_REF.
template struct F
www.eeworm.com/read/240162/4579019
c using8.c
// { dg-do compile }
// Origin: Bill Clarke
// PR c++/11097: using declartion for a converter operator to a nested class
// in a base type
template
struct A
{
www.eeworm.com/read/240162/4579023
c using7.c
template struct A
{
int i;
};
template struct B : A
{ // { dg-error "" }
using A::i; // { dg-error "" }
};
B b; // { dg-error "" }
www.eeworm.com/read/240162/4579025
c using6.c
// { dg-do compile }
// Origin: Wolfgang Bangerth
// PR c++/9022, nested namespace in using declaration
namespace gnu {
namespace gcc {
}
}
using gnu::gcc; // { dg-
www.eeworm.com/read/240162/4579034
c using2.c
// Copyright (C) 2001, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
//
www.eeworm.com/read/240162/4579039
c using11.c
namespace N1 {
enum e { a };
void e(char);
}
void f() {
using N1::e;
enum e x;
}
www.eeworm.com/read/240162/4579050
c using3.c
// PR c++/9798
namespace std { }
namespace STL { using namespace std; }
namespace std {
using namespace STL;
}
namespace STL {
struct A {
void B() { using namespace std; }
};
}
www.eeworm.com/read/240162/4579052
c using-10.c
// PR c++/13659
// { dg-do compile }
namespace foo1 {
template void f(T);
}
namespace foo2 {
template void f(T, T);
}
namespace foo {
using namespace foo1;
using namespac