Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Shared_Malloc / Malloc.h
blobfacf80c8236e108762accf9d9b1ee663b40db0bf
1 /* -*- C++ -*- */
2 #ifndef MY_MALLOC_H
3 #define MY_MALLOC_H
5 #include "ace/config-all.h"
7 #if !defined (ACE_LACKS_PRAGMA_ONCE)
8 # pragma once
9 #endif /* ACE_LACKS_PRAGMA_ONCE */
11 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
12 class ACE_Allocator;
13 ACE_END_VERSIONED_NAMESPACE_DECL
15 class Malloc
16 // = TITLE
17 // Allocator Singleton.
19 public:
20 static ACE_Allocator *instance ();
21 // Returns static instance.
23 private:
24 Malloc ();
25 // Ensure Singleton.
27 static ACE_Allocator *instance_;
28 // Malloc Singleton.
31 #endif /* MY_MALLOC_H */