代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/233448/4671129
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/233448/4671132
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/233448/4671148
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/233448/4671157
c using11.c
namespace N1 {
enum e { a };
void e(char);
}
void f() {
using N1::e;
enum e x;
}
www.eeworm.com/read/233448/4671159
c using14.c
// PR c++/21784
// { dg-options "" }
namespace mine
{
int cpow;
}
using mine::cpow;
www.eeworm.com/read/233448/4671167
c using12.c
// PR c++/16707
int i;
using N::i; // { dg-error "declared|expected" }
www.eeworm.com/read/233448/4671188
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/233448/4671192
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
www.eeworm.com/read/233448/4671199
c using5.c
// { dg-do compile }
// Origin: Volker Reichelt
// PR c++/10554: ICE for member using declaration with failed
// scope name lookup.
template struct A
{
www.eeworm.com/read/233448/4671524
c using2.c
namespace N {
template
struct foo {};
}
int main() {
using N::foo; // { dg-error "" }
}