代码搜索:overloading
找到约 1,176 项符合「overloading」的源代码
代码结果 1,176
www.eeworm.com/read/446978/1707652
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/440906/1774825
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/440906/1777084
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/385618/2587445
java overloadutil.java
package com.eireneh.eliza.util;
import java.lang.reflect.Method;
import java.util.Arrays;
/**
* @author Rob Sanheim
*
* A utility to check if one method is overloading another. Note that
www.eeworm.com/read/366702/2868005
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/366702/2868514
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/366702/2868580
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/366702/2871057
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/366702/2877167
f90 overload_2.f90
! { dg-do compile }
! Test the fix for PR32157, in which overloading 'LEN', as
! in 'test' below would cause a compile error.
!
! Contributed by Michael Richmond
!
subrou
www.eeworm.com/read/353051/3091090
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