代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/233448/4672571
c non-dependent10.c
// { dg-do compile }
// Origin: Giovanni Bajo
// Two-phase name lookup for address of member:
// Detecting overloading function error during parsing
struct S
{
int f(char
www.eeworm.com/read/233448/4672615
c non-dependent9.c
// { dg-do compile }
// Origin: Giovanni Bajo
// Two-phase name lookup for address of member:
// Overloading function
struct S
{
int f();
int f(int);
};
template
www.eeworm.com/read/233448/4675008
c overload1.c
// { dg-do assemble }
// GROUPS passed overloading
class Foo
{
public:
int f (void);
};
class Bar : public Foo
{
public:
int f (int); // { dg-error "" } candidates are
};
int main ()
{
Ba
www.eeworm.com/read/228954/4761731
cs complextest.cs
// Fig 7.27: ComplexTest.cs
// An example that uses operator overloading
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
www.eeworm.com/read/190666/5172671
c using1.c
// Test that overloading on 'this' quals works with class using-declarations.
// { dg-do link }
struct A {
void f() const;
void f() {}
void g() const {}
void g();
void h() const;
void h(
www.eeworm.com/read/190666/5174796
c overload1.c
// Build don't link:
// GROUPS passed overloading
class Foo
{
public:
int f (void);
};
class Bar : public Foo
{
public:
int f (int); // ERROR - candidates are
};
int main ()
{
Bar b;
b
www.eeworm.com/read/343323/3220990
java music2.java
//: polymorphism/music/Music2.java
// Overloading instead of upcasting.
package polymorphism.music;
import static net.mindview.util.Print.*;
class Stringed extends Instrument {
public void pl
www.eeworm.com/read/340665/3273202
c using1.c
// Test that overloading on 'this' quals works with class using-declarations.
// { dg-do link }
struct A {
void f() const;
void f() {}
void g() const {}
void g();
void h() const;
void h(
www.eeworm.com/read/340665/3275452
c overload1.c
// Build don't link:
// GROUPS passed overloading
class Foo
{
public:
int f (void);
};
class Bar : public Foo
{
public:
int f (int); // ERROR - candidates are
};
int main ()
{
Bar b;
b
www.eeworm.com/read/449042/1682823
java music2.java
//: polymorphism/music/Music2.java
// Overloading instead of upcasting.
package polymorphism.music;
import static net.mindview.util.Print.*;
class Stringed extends Instrument {
public void pl