Sha256: 6dc04d3dd81bef7cc7f6b0b655d1a6cb97b9893690f51a4ed213d6dd277f465c

Contents?: true

Size: 473 Bytes

Versions: 8

Compression:

Stored size: 473 Bytes

Contents

#ifndef __ALLOC_STRATS_H__
#define __ALLOC_STRATS_H__

namespace alloc_strats {

  class NoConstructor {
    public:
      ~NoConstructor() { }

    private:
      NoConstructor() { }
  };

  class Neither {
    private:
      Neither() {}
      ~Neither() {}
    public:
      NoConstructor* getConstructor() { return 0; }

      static Neither* getInstance() { static Neither neither; return &neither; }

      int process(int a, int b) { return a * b; }
  };
}


#endif

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbplusplus-1.4.0 test/headers/alloc_strats.h
rbplusplus-1.3.0 test/headers/alloc_strats.h
rbplusplus-1.2.1 test/headers/alloc_strats.h
rbplusplus-1.2.0 test/headers/alloc_strats.h
rbplusplus-1.1.0 test/headers/alloc_strats.h
rbplusplus-1.0.3 test/headers/alloc_strats.h
rbplusplus-1.0.1 test/headers/alloc_strats.h
rbplusplus-1.0 test/headers/alloc_strats.h