Sha256: bfdfa8500be35cbf28de5995df22595b288c423054d344acdd798e8f2a4ae1d5

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

#ifndef __METHOD_OVERLOAD_H__
#define __METHOD_OVERLOAD_H__

namespace overload {
  class Mathy {
    public:
    Mathy() {}
    Mathy(int x) {}
    int times() {
      return 1;
    }
    int times(int x) {
      return x;
    }
    int times(int x, int y) {
      return x*y;
    }
    long times(int x, int y, int z) {
      return x*y*z;
    }
    void nothing() {}
    void nothing(int x) {}
  };
}
#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbplusplus-0.9 test/headers/overload.h