3 //=============================================================================
7 * @author Johnny Willemsen (jwillemsen@remedy.nl)
9 //=============================================================================
11 #ifndef TAO_ALLOCATOR_H
12 #define TAO_ALLOCATOR_H
14 #include /**/ "ace/pre.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include /**/ "tao/Versioned_Namespace.h"
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
27 * @class TAO_Allocator
29 * @brief Abstract class for TAO allocators. This will be used for derived
30 * allocator templates that are capable of allocating a specific type of
33 template <typename handler_type
>
37 virtual ~TAO_Allocator () {}
39 virtual handler_type
*allocate () = 0;
40 virtual void release (handler_type
*ptr
) = 0;
44 TAO_END_VERSIONED_NAMESPACE_DECL
46 #include /**/ "ace/post.h"
47 #endif /* TAO_ALLOCATOR_H */