代码搜索:using 有哪些应用?
找到约 10,000 项符合「using 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/240162/4581686
c using9.c
// { dg-do assemble }
// Test for proper merging of functions from multiple using directives.
namespace standard
{ void print(int) {}
void dump(int) {}
}
namespace A { using standard::print; }
www.eeworm.com/read/240162/4581690
c using4.c
// { dg-do assemble }
//Build don't link
#include
namespace csp {
using namespace std::vector; // { dg-error "" } vector is not a namespace
}
www.eeworm.com/read/240162/4581693
c using13.c
// { dg-do run }
namespace A{
void foo(int){}
}
namespace B{
void foo(bool){}
}
void bar()
{
using B::foo;
using A::foo;
foo(true);
}
namespace Foo {
template void Hello(N) {}
}
www.eeworm.com/read/240162/4581703
c using8.c
// { dg-do assemble }
namespace M {
int i;
}
namespace N {
using namespace M;
}
using namespace N;
int j = i;
namespace O{
int k;
}
namespace N {
using namespace O;
}
int l = k;
www.eeworm.com/read/240162/4581707
c using7.c
// { dg-do run }
namespace X{
void f(int){}
}
void f();
int main()
{
using X::f;
f(3);
}
www.eeworm.com/read/240162/4581710
c using6.c
// { dg-do assemble }
#include
namespace csp {
using namespace std;
struct X {
vector v;
};
}
www.eeworm.com/read/240162/4581724
c using2.c
// { dg-do assemble }
void f();
namespace A{
using ::f;
}
www.eeworm.com/read/240162/4581731
c using10.c
// { dg-do assemble }
//Based on a report by Helmut Jarausch
template
class foo{};
namespace ABC
{
using ::foo;
}
www.eeworm.com/read/240162/4581733
c using11.c
// { dg-do assemble }
class joey {
public:
typedef int SVec;
};
using joey::SVec; // { dg-error "" } joey is not a namespace
www.eeworm.com/read/240162/4581737
c using14.c
// { dg-do assemble }
// Origin: Mark Mitchell
extern "C" void f ();
namespace N {
extern "C" void f ();
}
using N::f;
void g ()
{
f ();
}